Completed
Push — nln-php7 ( 12eaac...5c4f20 )
by Nicolas
05:37
created
src/Karma/Configuration/InMemoryReader.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration;
6 6
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function getAllVariables(): array
46 46
     {
47
-        $variables = array_map(function($key){
47
+        $variables = array_map(function($key) {
48 48
             return $this->extractVariableName($key);
49 49
         }, array_keys($this->values));
50 50
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function getAllVariables(): array
46 46
     {
47
-        $variables = array_map(function($key){
47
+        $variables = array_map(function($key) {
48 48
             return $this->extractVariableName($key);
49 49
         }, array_keys($this->values));
50 50
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             return $this->values[$key]['value'];
40 40
         }
41 41
 
42
-        throw new \RuntimeException("Variable $variable does not exist");
42
+        throw new \RuntimeException("variable $variable does not exist");
43 43
     }
44 44
 
45 45
     public function getAllVariables(): array
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser/IncludeParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration\Parser;
6 6
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     private function checkFilenameIsValid(string $filename): void
32 32
     {
33
-        if(! preg_match('~.*\.conf$~', $filename))
33
+        if( ! preg_match('~.*\.conf$~', $filename))
34 34
         {
35 35
             $this->triggerError("$filename is not a valid file name", 'Invalid dependency');
36 36
         }
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser/AbstractSectionParser.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration\Parser;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser/NullParser.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration\Parser;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser/VariableParser.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration\Parser;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser/ExternalParser.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Configuration\Parser;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Display/CliTable.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma\Display;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $lines = array();
70 70
         $lines[] = $separatorRow;
71 71
 
72
-        if(! empty($this->headers))
72
+        if( ! empty($this->headers))
73 73
         {
74 74
             $lines[] = $this->renderLine($this->headers);
75 75
             $lines[] = $separatorRow;
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             return;
93 93
         }
94 94
 
95
-        if(! empty($this->headers))
95
+        if( ! empty($this->headers))
96 96
         {
97 97
             array_unshift($this->headers, '');
98 98
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $this->columnsSize = array_pad(array(), $this->nbColumns, -1);
112 112
 
113
-        if(! empty($this->headers))
113
+        if( ! empty($this->headers))
114 114
         {
115 115
             $this->updateColumnsSize(array($this->headers));
116 116
         }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         foreach($this->rows as $row)
126 126
         {
127
-            if(is_array($row) ||$row instanceof \Countable)
127
+            if(is_array($row) || $row instanceof \Countable)
128 128
             {
129 129
                 $this->nbColumns = max($this->nbColumns, count($row));
130 130
             }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         foreach($newValues as $row)
139 139
         {
140
-            if(! is_array($row))
140
+            if( ! is_array($row))
141 141
             {
142 142
                 throw new \InvalidArgumentException('Rows must be arrays');
143 143
             }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     private function stripTags(string $value): string
189 189
     {
190
-        return preg_replace ('/<[^>]*>/', '', $value);
190
+        return preg_replace('/<[^>]*>/', '', $value);
191 191
     }
192 192
 
193 193
     private function renderLine(array $row): string
Please login to merge, or discard this patch.
src/Karma/ConfigurableProcessor.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma;
6 6
 
Please login to merge, or discard this patch.
src/Karma/FormatterProvider.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
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Karma;
6 6
 
Please login to merge, or discard this patch.