1 | <?php |
||
18 | class After |
||
19 | { |
||
20 | /** |
||
21 | * Trim all blank lines. |
||
22 | * |
||
23 | * @param array $activeConfig config file exploded in an array of lines |
||
24 | * |
||
25 | * @return array an array cleaned of blank lines |
||
26 | */ |
||
27 | 14 | public static function deleteBlankLines(array $activeConfig = []) |
|
39 | |||
40 | /** |
||
41 | * Reassembles discontinued simple directives in one line. |
||
42 | * |
||
43 | * In an Apache server context, it may be encountered. |
||
44 | * |
||
45 | * @param array $activeConfig config file exploded in an array of lines |
||
46 | * |
||
47 | * @return array an array with continuing lines gathered as one |
||
48 | */ |
||
49 | 8 | public static function continuingDirectives(array $activeConfig = []) |
|
62 | |||
63 | /** |
||
64 | * Helps to gather continuing lines as one. |
||
65 | * |
||
66 | * @param string &$line a line to add to previous lines or matching a contuining end line marker |
||
67 | */ |
||
68 | 8 | private static function setLineIfPrevious(&$line) |
|
83 | } |
||
84 |