Completed
Pull Request — master (#81)
by Greg
02:18
created
src/AnnotatedCommandFactory.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.