Completed
Pull Request — master (#86)
by Greg
02:32
created
src/AnnotatedCommandFactory.php 2 patches
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * store that does not itself depend on the annotated-command library.
221 221
      *
222 222
      * @param Mixed $dataStore
223
-     * @return type
223
+     * @return AnnotatedCommandFactory
224 224
      */
225 225
     public function setDataStore($dataStore)
226 226
     {
@@ -301,6 +301,10 @@  discard block
 block discarded – undo
301 301
         return array_filter($commandInfoList, $commandSelector);
302 302
     }
303 303
 
304
+    /**
305
+     * @param CommandInfo $commandInfo
306
+     * @param boolean $includeAllPublicMethods
307
+     */
304 308
     public static function isCommandOrHookMethod($commandInfo, $includeAllPublicMethods)
305 309
     {
306 310
         return static::isHookMethod($commandInfo) || static::isCommandMethod($commandInfo, $includeAllPublicMethods);
@@ -381,6 +385,10 @@  discard block
 block discarded – undo
381 385
         }
382 386
     }
383 387
 
388
+    /**
389
+     * @param string $string
390
+     * @param integer $n
391
+     */
384 392
     protected function getNthWord($string, $n, $default = '', $delimiter = ' ')
385 393
     {
386 394
         $words = explode($delimiter, $string);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,6 @@
 block discarded – undo
10 10
 use Consolidation\AnnotatedCommand\Parser\CommandInfoDeserializer;
11 11
 use Consolidation\AnnotatedCommand\Parser\CommandInfoSerializer;
12 12
 use Consolidation\OutputFormatters\Options\FormatterOptions;
13
-use Symfony\Component\Console\Command\Command;
14
-use Symfony\Component\Console\Input\InputInterface;
15
-use Symfony\Component\Console\Output\OutputInterface;
16 13
 
17 14
 /**
18 15
  * The AnnotatedCommandFactory creates commands for your application.
Please login to merge, or discard this patch.