Completed
Push — nln-php7 ( 12eaac...5c4f20 )
by Nicolas
05:37
created
src/Karma/Configuration/ValueFilterIterator.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;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Configuration/FilterInputVariable.php 1 patch
Spacing   +3 added lines, -3 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
 
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     {
11 11
         if(is_array($value))
12 12
         {
13
-            return array_map(function ($item) {
13
+            return array_map(function($item) {
14 14
                 return $this->filterOneValue($item);
15 15
             }, $value);
16 16
         }
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     private function filterOneValue($value)
22 22
     {
23
-        if(! is_string($value))
23
+        if( ! is_string($value))
24 24
         {
25 25
             return $value;
26 26
         }
Please login to merge, or discard this patch.
src/Karma/Configuration/Parser.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -244,8 +244,8 @@  discard block
 block discarded – undo
244 244
             if($status['found'] === false)
245 245
             {
246 246
                 $this->warning(sprintf(
247
-                   'External file %s was not found',
248
-                   $file
247
+                    'External file %s was not found',
248
+                    $file
249 249
                 ));
250 250
             }
251 251
         }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
     public function getDefaultEnvironmentsForGroups(): array
300 300
     {
301
-         $defaultEnvironments = [];
301
+            $defaultEnvironments = [];
302 302
 
303 303
         if(isset($this->parsers[self::GROUPS]))
304 304
         {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 
183 183
     private function changeCurrentFile(string $filePath): void
184 184
     {
185
-        $this->info("Reading $filePath");
185
+        $this->info("reading $filePath");
186 186
 
187 187
         foreach($this->parsers as $parser)
188 188
         {
Please login to merge, or discard this 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\Configuration;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function enableIncludeSupport(): self
53 53
     {
54
-        if(! isset($this->parsers[self::INCLUDES]))
54
+        if( ! isset($this->parsers[self::INCLUDES]))
55 55
         {
56 56
             $this->parsers[self::INCLUDES] = new IncludeParser();
57 57
         }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function enableExternalSupport(): self
63 63
     {
64
-        if(! isset($this->parsers[self::EXTERNALS]))
64
+        if( ! isset($this->parsers[self::EXTERNALS]))
65 65
         {
66 66
             $this->parsers[self::EXTERNALS] = new ExternalParser(new Parser($this->fs));
67 67
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function enableGroupSupport(): self
73 73
     {
74
-        if(! isset($this->parsers[self::GROUPS]))
74
+        if( ! isset($this->parsers[self::GROUPS]))
75 75
         {
76 76
             $this->parsers[self::GROUPS] = new GroupParser();
77 77
         }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $files = [$masterFilePath];
106 106
 
107
-        while(! empty($files))
107
+        while( ! empty($files))
108 108
         {
109 109
             foreach($files as $file)
110 110
             {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
     private function extractLines(string $filePath): array
157 157
     {
158
-        if(! $this->fs->has($filePath))
158
+        if( ! $this->fs->has($filePath))
159 159
         {
160 160
             throw new \RuntimeException("$filePath does not exist");
161 161
         }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
     private function switchSectionParser(string $sectionName): void
207 207
     {
208
-        if(! isset($this->parsers[$sectionName]))
208
+        if( ! isset($this->parsers[$sectionName]))
209 209
         {
210 210
             throw new \RuntimeException('Unknown section name ' . $sectionName);
211 211
         }
Please login to merge, or discard this patch.
src/Karma/Generator/NameTranslators/NullTranslator.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\Generator\NameTranslators;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Generator/NameTranslator.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\Generator;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Generator/ConfigurationFileGenerators/AbstractFileGenerator.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\Generator\ConfigurationFileGenerators;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Logging/OutputAware.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\Logging;
6 6
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         {
45 45
             if($verbosity <= $this->output->getVerbosity())
46 46
             {
47
-                if(! is_array($messages))
47
+                if( ! is_array($messages))
48 48
                 {
49 49
                     $messages = array($messages);
50 50
                 }
Please login to merge, or discard this patch.
src/Karma/Configuration/AbstractReader.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         }
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $environment
53
+     */
51 54
     public function getAllValuesForEnvironment(?string $environment = null)
52 55
     {
53 56
         $result = array();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function setDefaultEnvironment(string $environment): void
44 44
     {
45
-        if(! empty($environment) && is_string($environment))
45
+        if( ! empty($environment) && is_string($environment))
46 46
         {
47 47
             $this->defaultEnvironment = $environment;
48 48
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             }, $value);
92 92
         }
93 93
 
94
-        if(! is_string($value))
94
+        if( ! is_string($value))
95 95
         {
96 96
             return $value;
97 97
         }
Please login to merge, or discard this patch.
src/Karma/Logging/LoggerAware.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\Logging;
6 6
 
Please login to merge, or discard this patch.