Completed
Pull Request — master (#16)
by Greg
02:24
created
src/CommandInfo.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Return the list of refleaction parameters.
97 97
      *
98
-     * @return ReflectionParameter[]
98
+     * @return \ReflectionParameter[]
99 99
      */
100 100
     public function getParameters()
101 101
     {
@@ -497,6 +497,7 @@  discard block
 block discarded – undo
497 497
      * instance, we will allow the @option or @default tag to
498 498
      * reference the option only by name (e.g. 'silent' or 's'
499 499
      * instead of 'silent|s').
500
+     * @return string
500 501
      */
501 502
     public function findMatchingOption($optionName)
502 503
     {
@@ -529,6 +530,8 @@  discard block
 block discarded – undo
529 530
     /**
530 531
      * Given a list that might be 'a b c' or 'a, b, c' or 'a,b,c',
531 532
      * convert the data into the last of these forms.
533
+     * @param string $text
534
+     * @return string
532 535
      */
533 536
     protected static function convertListToCommaSeparated($text)
534 537
     {
Please login to merge, or discard this patch.
src/DefaultsWithDescriptions.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected $defaultDefault;
26 26
 
27
+    /**
28
+     * @param boolean $defaultDefault
29
+     */
27 30
     public function __construct($values, $defaultDefault = null)
28 31
     {
29 32
         $this->values = $values;
@@ -45,13 +48,17 @@  discard block
 block discarded – undo
45 48
      * Check to see whether the speicifed key exists in the collection.
46 49
      *
47 50
      * @param type $key
48
-     * @return type
51
+     * @return boolean
49 52
      */
50 53
     public function exists($key)
51 54
     {
52 55
         return array_key_exists($key, $this->values);
53 56
     }
54 57
 
58
+    /**
59
+     * @param string $key
60
+     * @param string $defaultValue
61
+     */
55 62
     public function setDefaultValue($key, $defaultValue)
56 63
     {
57 64
         $this->values[$key] = $defaultValue;
Please login to merge, or discard this patch.