PHP Classes
elePHPant
Icontem

File: phpcf-src/test/expected/if.php

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/expected/if.php  >  Download  
File: phpcf-src/test/expected/if.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: 5 years ago
Size: 507 bytes
 

 

Contents

Class file image Download
<?php
if ($a && $b
   
&& $c) {
    echo
'd';
}

if (
$a) break;
elseif (
$b) do_something_else();
else if (
$c) define('true', false);
else continue;

if (
$a
   
and $b) {}

class
MyTest
{
    public function
find(array $filter = array(), array $options = array())
    {
       
$local_cache = parent::find($filter, $options);
        if (
null !== $local_cache
           
and (!isset($options[self::OPTION_RESULT])
                or
self::OPTION_RESULT_OBJECT === $options[self::OPTION_RESULT])) {}
    }
}