PHP Classes

File: phpcf-src/test/original/long-expr.php

Recommend this page to a friend!
  Classes of Alex Krash   PHP Code formatter   phpcf-src/test/original/long-expr.php   Download  
File: phpcf-src/test/original/long-expr.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: 672 bytes
 

Contents

Class file image Download
<?php

if($a &&
   
$b) {
    echo
"Hello world!\n";
}

self::doSomething();

call_my_func(MY_CONST);

$this
   
->callOneThing()
    ->
callAnotherThing();
   
$this->callSomething()->callOtherSomething();

do_something($arg1, $arg2, $arg3);
do_something(
   
$arg1
);
do_other_thing($argument1, $argument2, $argument3, $argument1, $argument2, $argument3, $argument1, $argument2, $argument3, $argument1, $argument2, $argument3);

do_other_thing(
   
$argument1, $argument2, $argument3,
   
$argument1, $argument2, $argument3, $argument1,
   
$argument2, $argument3, $argument1, $argument2, $argument3
);

array_map(function($arg) { return $arg[1]; }, array('11', '22'));