Completed
Push — master ( fc66f8...3fe8da )
by Ilya
03:16
created
tests/HandlerMakeCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     protected function getHandlerFileNamesByNameAndActions(string $name, array $actions): array
194 194
     {
195
-        return array_map(function (string $action) use ($name) {
195
+        return array_map(function(string $action) use ($name) {
196 196
             return studly_case($action).studly_case($name).'.php';
197 197
         }, $actions);
198 198
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     protected function getFileNamesByPath(string $path): array
207 207
     {
208
-        return array_map(function (SplFileInfo $file) {
208
+        return array_map(function(SplFileInfo $file) {
209 209
             return $file->getFilename();
210 210
         }, $this->files->files($path));
211 211
     }
Please login to merge, or discard this patch.
tests/AbstractTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     protected function makeDirectory(string $path): string
48 48
     {
49
-        if (! $this->files->isDirectory(dirname($path))) {
49
+        if (!$this->files->isDirectory(dirname($path))) {
50 50
             $this->files->makeDirectory(dirname($path), 0777, true, true);
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Support/ActionsBag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function addIfNotExists(string $action): self
31 31
     {
32
-        if (! $this->actions->contains($action)) {
32
+        if (!$this->actions->contains($action)) {
33 33
             $this->actions->push($action);
34 34
         }
35 35
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function deleteIfExists(string $action): self
46 46
     {
47
-        $this->actions = $this->actions->reject(function (string $existingAction) use ($action) {
47
+        $this->actions = $this->actions->reject(function(string $existingAction) use ($action) {
48 48
             return $existingAction === $action;
49 49
         });
50 50
 
Please login to merge, or discard this patch.
src/Commands/HandlerMakeCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 
62 62
                 $path = $this->getPath($fullClassName);
63 63
 
64
-                if ((! $this->hasOption('force') ||
65
-                        ! $this->option('force')) &&
64
+                if ((!$this->hasOption('force') ||
65
+                        !$this->option('force')) &&
66 66
                     $this->alreadyExists($fullClassName)) {
67 67
                     $this->error($type.' already exists!');
68 68
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $defaultNamespace = $this->laravel->getNamespace().'Http\\Handlers';
96 96
 
97
-        if (! is_null($namespaceOption = $this->getValidatedAndNormalizedNamespaceOption())) {
97
+        if (!is_null($namespaceOption = $this->getValidatedAndNormalizedNamespaceOption())) {
98 98
             if (starts_with($namespaceOption, '\\')) {
99 99
                 return $namespaceOption;
100 100
             }
@@ -115,13 +115,13 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $namespace = (string) $this->option('namespace');
117 117
 
118
-        if (! $namespace) {
118
+        if (!$namespace) {
119 119
             return null;
120 120
         }
121 121
 
122 122
         $namespaceWithNormalizedSlashes = preg_replace('/[\/\\\]+/', '\\', $namespace);
123 123
 
124
-        if (! preg_match('/^(\\\|(\\\?\w+)+)$/', $namespaceWithNormalizedSlashes)) {
124
+        if (!preg_match('/^(\\\|(\\\?\w+)+)$/', $namespaceWithNormalizedSlashes)) {
125 125
             throw new CommandException('['.$namespace.'] is not a valid namespace.');
126 126
         }
127 127
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         if ($bag->isEmpty()) {
143 143
             return [$name];
144 144
         } else {
145
-            return array_map(function (string $action) use ($name) {
145
+            return array_map(function(string $action) use ($name) {
146 146
                 return studly_case($action).$name;
147 147
             }, $bag->get());
148 148
         }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     protected function getValidatedNameArgument(): string
158 158
     {
159 159
         $name = (string) $this->argument('name');
160
-        if (! preg_match('/^\w+$/', $name)) {
160
+        if (!preg_match('/^\w+$/', $name)) {
161 161
             throw new CommandException('Name can\'t contain any non-word characters.');
162 162
         }
163 163
 
Please login to merge, or discard this patch.