PHP Classes

File: phpcf-src/test/original/long-signature-array.php

Recommend this page to a friend!
  Classes of Alex Krash   PHP Code formatter   phpcf-src/test/original/long-signature-array.php   Download  
File: phpcf-src/test/original/long-signature-array.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: 10 years ago
Size: 915 bytes
 

Contents

Class file image Download
<?php
class One
{

    public function
testOne(
        array
       
$one = array(),
       
$two,
        array
       
$three = [
            array(
               
'one' => 'two'
           
)
        ]
    )
    {
        echo
"Here";
    }

    public function
testTwo(
        array
        &
$one = array(),
       
$two,
        array
        &
$three = [
            array(
               
'one' => 'two'
           
)
        ]
    )
    {
        echo
"Here";
    }
}

function
testOne(
    array
   
$one = array(),
   
$two,
    array
   
$three =
    array(
       
'test' =>
            array(
               
'one' => 'two'
           
)
    )
)
{
    echo
"Test";
}

function
testTwo(
    array
   
$one = [
        [
'one' => 'two',
           
'three' => 'four']
    ],
   
$two =
    [],
    array
   
$three = [
        array(
           
'one' => 'two'
       
)
    ]
)
{
    echo
"Here";
}