@@ -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 | } |
@@ -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' => [], |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | return preg_replace_callback( |
| 78 | 78 | '/\\\(n|r|t|v|e|f|\$|"|\\\|x[0-9A-Fa-f]{1,2}|u{[0-9a-f]{1,6}}|[0-7]{1,3})/', |
| 79 | - function ($match) { |
|
| 79 | + function($match) { |
|
| 80 | 80 | switch ($match[1][0]) { |
| 81 | 81 | case 'n': |
| 82 | 82 | return "\n"; |
@@ -427,7 +427,7 @@ |
||
| 427 | 427 | */ |
| 428 | 428 | public function countTranslated() |
| 429 | 429 | { |
| 430 | - $callback = function (Translation $v) { |
|
| 430 | + $callback = function(Translation $v) { |
|
| 431 | 431 | return ($v->hasTranslation()) ? $v->getTranslation() : null; |
| 432 | 432 | }; |
| 433 | 433 | |