1 | <?php |
||
19 | class After |
||
20 | { |
||
21 | /** |
||
22 | * Trim all blank lines. |
||
23 | * |
||
24 | * @param array $activeConfig config file exploded in an array of lines |
||
25 | * |
||
26 | * @return array an array cleaned of blank lines |
||
27 | */ |
||
28 | 11 | public static function deleteBlankLines(array $activeConfig = array()) |
|
40 | |||
41 | /** |
||
42 | * Reassembles discontinued simple directives in one line. |
||
43 | * |
||
44 | * In an Apache server context, it may be encountered. |
||
45 | * |
||
46 | * @param array $activeConfig config file exploded in an array of lines |
||
47 | * |
||
48 | * @return array an array with continuing lines gathered as one |
||
49 | */ |
||
50 | 5 | public static function continuingDirectives(array $activeConfig = array()) |
|
63 | |||
64 | /** |
||
65 | * Helps to gather continuing lines as one. |
||
66 | * |
||
67 | * @param string &$line a line to add to previous lines or matching a contuining end line marker |
||
68 | */ |
||
69 | 5 | private static function setLineIfPrevious(&$line) |
|
84 | } |
||
85 |
Let’s assume you have a class which uses late-static binding:
}
The code above will run fine in your PHP runtime. However, if you now create a sub-class and call the
getSomeVariable()
on that sub-class, you will receive a runtime error:In the case above, it makes sense to update
SomeClass
to useself
instead: