PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Classes of Alex Krash  >  PHP Code formatter  >  phpcf-src/test/expected/long-signature-array.php  >  Download  
File: phpcf-src/test/expected/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: 5 years ago
Size: 858 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";
}