PHP Classes

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

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

Contents

Class file image Download
<?php
function shortdef($a, $b, $c) {}

function
longdef(
    array
$a = array(),
   
Something $b,
   
OtherThing $c
)
{
    echo
"Very nasty formatting for function definition";
}

function
longparams(
   
$aaaaaaaaaaaaaaa,
   
$bbbbbbbbbbbbbbbbbbb,
   
$cccccccccccccccccc,
   
$ddddddddddddddddddd,
   
$eeeeeeeeeeeeeeeeeeee,
   
$fffffffffffff
)
{
    echo
'hello';
}

class
TestClass
{
    function
longparams(
       
$aaaaaaaaaaaaaaa,
       
$bbbbbbbbbbbbbbbbbbb,
       
$cccccccccccccccccc,
       
$ddddddddddddddddddd,
       
$eeeeeeeeeeeeeeeeeeee,
       
$fffffffffffff
   
)
    {
        echo
'hello';
    }
}