@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $this->tokens = array_values( |
| 49 | 49 | array_filter( |
| 50 | 50 | token_get_all($code), |
| 51 | - function ($token) { |
|
| 51 | + function($token) { |
|
| 52 | 52 | return !is_array($token) || $token[0] !== T_WHITESPACE; |
| 53 | 53 | } |
| 54 | 54 | ) |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -spl_autoload_register(function ($class) { |
|
| 3 | +spl_autoload_register(function($class) { |
|
| 4 | 4 | if (strpos($class, 'Gettext\\') !== 0) { |
| 5 | 5 | return; |
| 6 | 6 | } |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $value = substr($value, 1, -1); |
| 75 | 75 | |
| 76 | - return preg_replace_callback('/\\\(n|r|t|v|e|f|\$|"|\\\|x[0-9A-Fa-f]{1,2}|u{[0-9a-f]{1,6}}|[0-7]{1,3})/', function ($match) { |
|
| 76 | + return preg_replace_callback('/\\\(n|r|t|v|e|f|\$|"|\\\|x[0-9A-Fa-f]{1,2}|u{[0-9a-f]{1,6}}|[0-7]{1,3})/', function($match) { |
|
| 77 | 77 | switch ($match[1][0]) { |
| 78 | 78 | case 'n': |
| 79 | 79 | return "\n"; |
@@ -11,10 +11,10 @@ |
||
| 11 | 11 | class PhpCode extends Extractor implements ExtractorInterface |
| 12 | 12 | { |
| 13 | 13 | public static $options = [ |
| 14 | - // - false: to not extract comments |
|
| 15 | - // - empty string: to extract all comments |
|
| 16 | - // - non-empty string: to extract comments that start with that string |
|
| 17 | - // - array with strings to extract comments format. |
|
| 14 | + // - false: to not extract comments |
|
| 15 | + // - empty string: to extract all comments |
|
| 16 | + // - non-empty string: to extract comments that start with that string |
|
| 17 | + // - array with strings to extract comments format. |
|
| 18 | 18 | 'extractComments' => false, |
| 19 | 19 | |
| 20 | 20 | 'constants' => [], |