| 1 | <?php |
||
| 18 | class Before |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Deletes commented lines and end line comments. |
||
| 22 | * |
||
| 23 | * @param string $config a file content |
||
| 24 | * |
||
| 25 | * @return string a file content without comments |
||
| 26 | */ |
||
| 27 | 14 | public static function deleteComments($config = '') |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Sets starting and endind directives in a line. |
||
| 36 | * |
||
| 37 | * For convinience, in nginx configuration context, braces are placed one per line |
||
| 38 | * |
||
| 39 | * @param string $config a file content |
||
| 40 | * |
||
| 41 | * @return string a file content without comments |
||
| 42 | */ |
||
| 43 | 2 | public static function bracesPlacedOnePerLine($config = '') |
|
| 49 | } |
||
| 50 |