@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * store that does not itself depend on the annotated-command library. |
223 | 223 | * |
224 | 224 | * @param Mixed $dataStore |
225 | - * @return type |
|
225 | + * @return AnnotatedCommandFactory |
|
226 | 226 | */ |
227 | 227 | public function setDataStore($dataStore) |
228 | 228 | { |
@@ -362,6 +362,10 @@ discard block |
||
362 | 362 | } |
363 | 363 | } |
364 | 364 | |
365 | + /** |
|
366 | + * @param string $string |
|
367 | + * @param integer $n |
|
368 | + */ |
|
365 | 369 | protected function getNthWord($string, $n, $default = '', $delimiter = ' ') |
366 | 370 | { |
367 | 371 | $words = explode($delimiter, $string); |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | // can never be commands. |
249 | 249 | $commandMethodNames = array_filter( |
250 | 250 | get_class_methods($classNameOrInstance) ?: [], |
251 | - function ($m) { |
|
251 | + function($m) { |
|
252 | 252 | return !preg_match('#^_#', $m); |
253 | 253 | } |
254 | 254 | ); |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | return $this->createSelectedCommandsFromClassInfo( |
275 | 275 | $commandInfoList, |
276 | 276 | $commandFileInstance, |
277 | - function ($commandInfo) use ($includeAllPublicMethods) { |
|
277 | + function($commandInfo) use ($includeAllPublicMethods) { |
|
278 | 278 | return static::isCommandMethod($commandInfo, $includeAllPublicMethods); |
279 | 279 | } |
280 | 280 | ); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function get($key) |
36 | 36 | { |
37 | - return (array) $this->dataStore->get($key); |
|
37 | + return (array)$this->dataStore->get($key); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |