Passed
Push — master ( 8b9632...8da2f9 )
by Maxime
02:42
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
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
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.