Completed
Pull Request — master (#84)
by Greg
02:12
created
src/AnnotatedCommandFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         // can never be commands.
245 245
         $commandMethodNames = array_filter(
246 246
             get_class_methods($classNameOrInstance) ?: [],
247
-            function ($m) {
247
+            function($m) {
248 248
                 return !preg_match('#^_#', $m);
249 249
             }
250 250
         );
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             if (!array_key_exists($commandMethodName, $cachedCommandInfoList)) {
254 254
                 $commandInfo = CommandInfo::create($classNameOrInstance, $commandMethodName);
255 255
                 if (static::isCommandOrHookMethod($commandInfo, $this->getIncludeAllPublicMethods())) {
256
-                    $commandInfoList[$commandMethodName] =  $commandInfo;
256
+                    $commandInfoList[$commandMethodName] = $commandInfo;
257 257
                 }
258 258
             }
259 259
         }
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         return $this->createSelectedCommandsFromClassInfo(
276 276
             $commandInfoList,
277 277
             $commandFileInstance,
278
-            function ($commandInfo) use ($includeAllPublicMethods) {
278
+            function($commandInfo) use ($includeAllPublicMethods) {
279 279
                 return static::isCommandMethod($commandInfo, $includeAllPublicMethods);
280 280
             }
281 281
         );
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $commandInfoList = $this->filterCommandInfoList($commandInfoList, $commandSelector);
287 287
         return array_map(
288
-            function ($commandInfo) use ($commandFileInstance) {
288
+            function($commandInfo) use ($commandFileInstance) {
289 289
                 return $this->createCommand($commandInfo, $commandFileInstance);
290 290
             },
291 291
             $commandInfoList
Please login to merge, or discard this patch.