@@ -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); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | if (method_exists($this->getDataStore(), 'has') && !$this->getDataStore()->has($className)) { |
187 | 187 | return []; |
188 | 188 | } |
189 | - $cache_data = (array) $this->getDataStore()->get($className); |
|
189 | + $cache_data = (array)$this->getDataStore()->get($className); |
|
190 | 190 | if (!$cache_data) { |
191 | 191 | return []; |
192 | 192 | } |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | // can never be commands. |
247 | 247 | $commandMethodNames = array_filter( |
248 | 248 | get_class_methods($classNameOrInstance) ?: [], |
249 | - function ($m) { |
|
249 | + function($m) { |
|
250 | 250 | return !preg_match('#^_#', $m); |
251 | 251 | } |
252 | 252 | ); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | return $this->createSelectedCommandsFromClassInfo( |
273 | 273 | $commandInfoList, |
274 | 274 | $commandFileInstance, |
275 | - function ($commandInfo) use ($includeAllPublicMethods) { |
|
275 | + function($commandInfo) use ($includeAllPublicMethods) { |
|
276 | 276 | return static::isCommandMethod($commandInfo, $includeAllPublicMethods); |
277 | 277 | } |
278 | 278 | ); |