@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | // can never be commands. |
| 248 | 248 | $commandMethodNames = array_filter( |
| 249 | 249 | get_class_methods($classNameOrInstance) ?: [], |
| 250 | - function ($m) { |
|
| 250 | + function($m) { |
|
| 251 | 251 | return !preg_match('#^_#', $m); |
| 252 | 252 | } |
| 253 | 253 | ); |
@@ -258,7 +258,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |