PHP Classes

File: phpcf-src/test/expected/function-name.php

Recommend this page to a friend!
  Packages of Alex Krash   PHP Code formatter   phpcf-src/test/expected/function-name.php   Download  
File: phpcf-src/test/expected/function-name.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: 12 years ago
Size: 267 bytes
 

 

Contents

Class file image Download
<?php
/*
 * Test for function name formatting (brace right after name)
 */

function name() {}

name();

name();

function name_two() {}

class One
{
    function one() {}

    function two() {}
}

$one->call();

$one
    ->call();

$one->call();

$one
    ->call();