Completed
Pull Request — master (#41)
by Vincenzo
03:14
created
src/Rule/AbstractRule.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * Converts a HTTP query string to an array
115 115
      *
116
-     * @param $str
116
+     * @param string $str
117 117
      *
118
-     * @return array
118
+     * @return boolean
119 119
      */
120 120
     protected function parseHttpQueryString($str)
121 121
     {
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
      * Parses a CSV string and converts the result into an "options" array
151 151
      * (an associative array that contains the options for the validation rule)
152 152
      *
153
-     * @param $str
153
+     * @param string $str
154 154
      *
155
-     * @return array
155
+     * @return boolean
156 156
      */
157 157
     protected function parseCsvString($str)
158 158
     {
Please login to merge, or discard this patch.
src/RuleFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      *            label of the form input field or model attribute
133 133
      *
134 134
      * @throws \InvalidArgumentException
135
-     * @return \Sirius\Validation\Rule\AbstractValidator
135
+     * @return CallbackRule
136 136
      */
137 137
     public function createRule($name, $options = null, $messageTemplate = null, $label = null)
138 138
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     }
195 195
 
196 196
     /**
197
-     * @param $name
197
+     * @param callable $name
198 198
      * @param $options
199 199
      *
200 200
      * @return CallbackRule
Please login to merge, or discard this patch.
src/ValueValidator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
     protected $label;
44 44
 
45 45
 
46
+    /**
47
+     * @param string $label
48
+     */
46 49
     function __construct(RuleFactory $ruleFactory = null, ErrorMessage $errorMessagePrototype = null, $label = null)
47 50
     {
48 51
         if ( ! $ruleFactory) {
@@ -141,7 +144,7 @@  discard block
 block discarded – undo
141 144
     }
142 145
 
143 146
     /**
144
-     * @param AbstractValidator $validationRule
147
+     * @param AbstractRule $validationRule
145 148
      *
146 149
      * @return ValueValidator
147 150
      */
Please login to merge, or discard this patch.