PHP Classes

File: phpcf-src/test/original/broken-switch.php

Recommend this page to a friend!
  Classes of Alex Krash   PHP Code formatter   phpcf-src/test/original/broken-switch.php   Download  
File: phpcf-src/test/original/broken-switch.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Code formatter
Reformat PHP code according to standard options
Author: By
Last change:
Date: 9 years ago
Size: 405 bytes
 

Contents

Class file image Download
<?php
$import_part
= Vars::get('form', '');
            switch (
$import_part) {
                case
'social':
                   
includeOnce(PHPWEB_PATH_PACKAGES.'Providers/ProviderFilter.php');
                    if (!
ProviderFilter::isSocialProvider($this->provider_id)) $this->error = SHARE_ERROR_PROVIDER_INVALID;
                break;

                default:
            }
echo
'Hello world!';