Passed
Push — develop ( 5def3e...6cdbbb )
by Paul
02:27
created
src/Util/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public static function decode($string): array
28 28
     {
29
-        if (! is_string($string)) {
29
+        if (!is_string($string)) {
30 30
             throw new JsonException('Json decode parameter must be a string');
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Configuration/ConsoleConfig.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
     private function validateBooleans($config): void
42 42
     {
43 43
         // Check boolean parameters
44
-        if (! Validator::key('overwrite', Validator::boolType())->validate($config)) {
44
+        if (!Validator::key('overwrite', Validator::boolType())->validate($config)) {
45 45
             throw new InvalidConfigException('"overwrite" parameter must be set as a boolean.');
46 46
         }
47
-        if (! Validator::key('ignore', Validator::boolType())->validate($config)) {
47
+        if (!Validator::key('ignore', Validator::boolType())->validate($config)) {
48 48
             throw new InvalidConfigException('"ignore" parameter must be set as a boolean.');
49 49
         }
50 50
     }
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function validateIncludeRegex($config): void
60 60
     {
61
-        if (! Validator::key('include', Validator::stringType())->validate($config)
62
-            && ! Validator::key('include', Validator::nullType())->validate($config)
61
+        if (!Validator::key('include', Validator::stringType())->validate($config)
62
+            && !Validator::key('include', Validator::nullType())->validate($config)
63 63
         ) {
64 64
             throw new InvalidConfigException('"include" parameter must be set as a string or a null value.');
65 65
         }
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function validateExcludeRegex($config): void
76 76
     {
77
-        if (! Validator::key('exclude', Validator::stringType())->validate($config)
78
-            && ! Validator::key('exclude', Validator::nullType())->validate($config)
77
+        if (!Validator::key('exclude', Validator::stringType())->validate($config)
78
+            && !Validator::key('exclude', Validator::nullType())->validate($config)
79 79
         ) {
80 80
             throw new InvalidConfigException('"exclude" parameter must be set as a string or a null value.');
81 81
         }
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
     private function validateDirs($config): void
92 92
     {
93 93
         // Check that dirs key exists
94
-        if (! Validator::key('dirs', Validator::arrayType())->validate($config)) {
94
+        if (!Validator::key('dirs', Validator::arrayType())->validate($config)) {
95 95
             throw new InvalidConfigException('"dirs" parameter is not an array.');
96 96
         }
97 97
         // Validate each dirs
98
-        if (! Validator::arrayVal()
98
+        if (!Validator::arrayVal()
99 99
             ->each(Validator::stringType(), Validator::stringType())->validate($config['dirs'])
100 100
         ) {
101 101
             throw new InvalidConfigException('Some directories in "dirs" parameter are not strings.');
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
     private function validateFiles($config): void
113 113
     {
114 114
         // Check that files key exists
115
-        if (! Validator::key('files', Validator::arrayType())->validate($config)) {
115
+        if (!Validator::key('files', Validator::arrayType())->validate($config)) {
116 116
             throw new InvalidConfigException('"files" parameter is not an array.');
117 117
         }
118 118
         // Validate each files
119
-        if (! Validator::arrayVal()
119
+        if (!Validator::arrayVal()
120 120
             ->each(Validator::stringType(), Validator::stringType())->validate($config['files'])
121 121
         ) {
122 122
             throw new InvalidConfigException('Some files in "files" parameter are not strings.');
Please login to merge, or discard this patch.