PHP Classes
elePHPant
Icontem

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

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

 

Contents

Class file image Download
<?php

class Something
{
    static
$protected = false;

    static function
helloworld()
    {
        static
$var;
        echo
'Hello world!';

        if (
true) {
            static::
helloworld();
            static::
$protected = true;
        }
    }

    static public function
wrongKeywordsOrder() {}

    static protected function
wrongKeywordsOrder1() {}

    static private function
wrongKeywordsOrder2() {}

    public static function
rightKeywordsOrder() {}

    protected static function
rightKeywordsOrder1() {}

    private static function
rightKeywordsOrder2() {}
}

Something::helloworld();