Passed
Push — develop ( 31e284...390d3f )
by Paul
02:12
created
src/PhpUnitGen/Console/GenerateTestsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                     $sourceDirectory,
102 102
                     $exception->getMessage()
103 103
                 ));
104
-                if (! $config->hasIgnore()) {
104
+                if (!$config->hasIgnore()) {
105 105
                     return -1;
106 106
                 }
107 107
             }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function getConfiguration(string $path): ConsoleConfigInterface
123 123
     {
124
-        if (! $this->fileSystem->has($path)) {
124
+        if (!$this->fileSystem->has($path)) {
125 125
             throw new InvalidConfigException(sprintf('Config file "%s" does not exists.', $path));
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/PhpUnitGen/Configuration/ConsoleConfig.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
     private function validateBooleans($config):void
39 39
     {
40 40
         // Check boolean parameters
41
-        if (! Validator::key('overwrite', Validator::boolType())->validate($config)) {
41
+        if (!Validator::key('overwrite', Validator::boolType())->validate($config)) {
42 42
             throw new InvalidConfigException('"overwrite" parameter must be set as a boolean.');
43 43
         }
44
-        if (! Validator::key('auto', Validator::boolType())->validate($config)) {
44
+        if (!Validator::key('auto', Validator::boolType())->validate($config)) {
45 45
             throw new InvalidConfigException('"auto" 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
     }
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
     private function validateStrings($config): void
60 60
     {
61 61
         // Check string parameters
62
-        if (! Validator::key('include', Validator::stringType())->validate($config)) {
62
+        if (!Validator::key('include', Validator::stringType())->validate($config)) {
63 63
             throw new InvalidConfigException('"include" parameter must be set as a string.');
64 64
         }
65
-        if (! Validator::key('exclude', Validator::stringType())->validate($config)) {
65
+        if (!Validator::key('exclude', Validator::stringType())->validate($config)) {
66 66
             throw new InvalidConfigException('"exclude" parameter must be set as a string.');
67 67
         }
68 68
     }
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
     private function validateDirs($config): void
78 78
     {
79 79
         // Check that dirs exists
80
-        if (! Validator::key('dirs', Validator::arrayType()->length(1, null))->validate($config)) {
80
+        if (!Validator::key('dirs', Validator::arrayType()->length(1, null))->validate($config)) {
81 81
             throw new InvalidConfigException('"dirs" parameter is not an array or does not contains elements.');
82 82
         }
83 83
         // Validate each dirs
84
-        if (! Validator::arrayVal()
84
+        if (!Validator::arrayVal()
85 85
             ->each(Validator::stringType(), Validator::stringType())->validate($config['dirs'])
86 86
         ) {
87 87
             throw new InvalidConfigException('Some directories in "dirs" parameter are not strings.');
Please login to merge, or discard this patch.