Completed
Pull Request — master (#127)
by Greg
01:49
created
src/AnnotatedCommandFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         // can never be commands.
247 247
         $commandMethodNames = array_filter(
248 248
             get_class_methods($classNameOrInstance) ?: [],
249
-            function ($m) use ($classNameOrInstance) {
249
+            function($m) use ($classNameOrInstance) {
250 250
                 $reflectionMethod = new \ReflectionMethod($classNameOrInstance, $m);
251 251
                 return !$reflectionMethod->isStatic() && !preg_match('#^_#', $m);
252 252
             }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
                 if (!static::isCommandOrHookMethod($commandInfo, $this->getIncludeAllPublicMethods())) {
259 259
                     $commandInfo->invalidate();
260 260
                 }
261
-                $commandInfoList[$commandMethodName] =  $commandInfo;
261
+                $commandInfoList[$commandMethodName] = $commandInfo;
262 262
             }
263 263
         }
264 264
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         return $this->createSelectedCommandsFromClassInfo(
280 280
             $commandInfoList,
281 281
             $commandFileInstance,
282
-            function ($commandInfo) use ($includeAllPublicMethods) {
282
+            function($commandInfo) use ($includeAllPublicMethods) {
283 283
                 return static::isCommandMethod($commandInfo, $includeAllPublicMethods);
284 284
             }
285 285
         );
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     {
290 290
         $commandInfoList = $this->filterCommandInfoList($commandInfoList, $commandSelector);
291 291
         return array_map(
292
-            function ($commandInfo) use ($commandFileInstance) {
292
+            function($commandInfo) use ($commandFileInstance) {
293 293
                 return $this->createCommand($commandInfo, $commandFileInstance);
294 294
             },
295 295
             $commandInfoList
Please login to merge, or discard this patch.