Passed
Push — master ( 9f8b05...782ba1 )
by Maxime
05:41
created
src/Generators/Xliff.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
         return $dom->saveXML();
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $name
81
+     */
79 82
     private static function createTextNode(DOMDocument $dom, $name, $string)
80 83
     {
81 84
         $node = $dom->createElement($name);
Please login to merge, or discard this patch.
src/Utils/PhpFunctionsScanner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
             )
Please login to merge, or discard this patch.
src/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Extractors/PhpCode.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
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' => [],
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/Translations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -427,7 +427,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.