Completed
Push — nln-php7 ( 12eaac...5c4f20 )
by Nicolas
05:37
created
src/Karma/ProfileReader.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         catch(ParseException $e)
57 57
         {
58 58
             throw new \RuntimeException(sprintf(
59
-               'Error while parsing profile : %s',
59
+                'Error while parsing profile : %s',
60 60
                 $e->getMessage()
61 61
             ));
62 62
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,8 +191,7 @@
 block discarded – undo
191 191
         if(
192 192
             ! array_key_exists($parameter, $parameterValidators)
193 193
             || ! $parameterValidators[$parameter] instanceof \Closure
194
-        )
195
-        {
194
+        ) {
196 195
             return true;
197 196
         }
198 197
 
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;
6 6
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         foreach(array_keys($this->attributes) as $name)
69 69
         {
70
-            if(! isset($values[$name]))
70
+            if( ! isset($values[$name]))
71 71
             {
72 72
                 continue;
73 73
             }
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             return true;
199 199
         }
200 200
 
201
-        if(! $parameterValidators[$parameter]($value))
201
+        if( ! $parameterValidators[$parameter]($value))
202 202
         {
203 203
             throw new \RuntimeException('Paramater %s format is invalid');
204 204
         }
Please login to merge, or discard this patch.
src/Karma/FormattersDefinition.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/FormatterProviders/NullProvider.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\FormatterProviders;
6 6
 
Please login to merge, or discard this patch.
src/Karma/FormatterProviders/ProfileProvider.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\FormatterProviders;
6 6
 
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 
33 33
     private function parseFormatters($content): void
34 34
     {
35
-        if(! is_array($content))
35
+        if( ! is_array($content))
36 36
         {
37 37
             throw new \InvalidArgumentException('Syntax error in profile [formatters]');
38 38
         }
39 39
 
40 40
         foreach($content as $name => $rules)
41 41
         {
42
-            if(! is_array($rules))
42
+            if( ! is_array($rules))
43 43
             {
44 44
                 throw new \InvalidArgumentException('Syntax error in profile [formatters]');
45 45
             }
Please login to merge, or discard this patch.
src/Karma/Command/Generate.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\Command;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Filesystem/Adapters/SingleLocalFile.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\Filesystem\Adapters;
6 6
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function read($key)
22 22
     {
23
-        if(! $this->exists($key))
23
+        if( ! $this->exists($key))
24 24
         {
25 25
             return false;
26 26
         }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function mtime($key)
47 47
     {
48
-        if(! $this->exists($key))
48
+        if( ! $this->exists($key))
49 49
         {
50 50
             return false;
51 51
         }
Please login to merge, or discard this patch.
src/Karma/Filters/FileFilterIterator.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\Filters;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Formatters/Raw.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\Formatters;
6 6
 
Please login to merge, or discard this patch.
src/Karma/Formatters/Rules.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\Formatters;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         if($value === '<string>')
53 53
         {
54
-            $result = function ($value) use ($result) {
54
+            $result = function($value) use ($result) {
55 55
                 return str_replace('<string>', $value, $result);
56 56
             };
57 57
         }
Please login to merge, or discard this patch.