@@ -22,7 +22,7 @@ |
||
| 22 | 22 | while ($this->valid()) { |
| 23 | 23 | /** @var FieldInterface $field */ |
| 24 | 24 | $field = $this->current(); |
| 25 | - if($field->getName() == $name) { |
|
| 25 | + if ($field->getName() == $name) { |
|
| 26 | 26 | return $field; |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
| 246 | - * @param $key |
|
| 246 | + * @param string $key |
|
| 247 | 247 | * @return mixed|string |
| 248 | 248 | */ |
| 249 | 249 | public function getAttribute($key) |
@@ -252,8 +252,8 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | /** |
| 255 | - * @param $key |
|
| 256 | - * @param $value |
|
| 255 | + * @param string $key |
|
| 256 | + * @param string $value |
|
| 257 | 257 | * @return $this |
| 258 | 258 | */ |
| 259 | 259 | public function setAttribute($key, $value) |
@@ -166,7 +166,6 @@ discard block |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | /** |
| 169 | - * @param mixed $value |
|
| 170 | 169 | * @return bool |
| 171 | 170 | * @throws Exception If validation of $value is impossible |
| 172 | 171 | */ |
@@ -183,7 +182,6 @@ discard block |
||
| 183 | 182 | } |
| 184 | 183 | |
| 185 | 184 | /** |
| 186 | - * @param FieldInterface $field |
|
| 187 | 185 | */ |
| 188 | 186 | private function checkForErrors(ValidatorInterface $validator) |
| 189 | 187 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function setValue($value); |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * @return mixed |
|
| 25 | + * @return string |
|
| 26 | 26 | */ |
| 27 | 27 | public function getValue(); |
| 28 | 28 | |
@@ -48,17 +48,17 @@ discard block |
||
| 48 | 48 | public function getName(); |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @return mixed |
|
| 51 | + * @return string |
|
| 52 | 52 | */ |
| 53 | 53 | public function getTag(); |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return mixed |
|
| 56 | + * @return string |
|
| 57 | 57 | */ |
| 58 | 58 | public function getClass(); |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return mixed |
|
| 61 | + * @return string |
|
| 62 | 62 | */ |
| 63 | 63 | public function getTagType(); |
| 64 | 64 | |
@@ -85,7 +85,6 @@ discard block |
||
| 85 | 85 | public function getFilters(); |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * @param mixed $value |
|
| 89 | 88 | * @return bool |
| 90 | 89 | * @throws Exception If validation of $value is impossible |
| 91 | 90 | */ |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $helpBlock->setAttribute('class', 'help-block'); |
| 96 | 96 | $errorMessages = ''; |
| 97 | 97 | foreach ($messages as $message) { |
| 98 | - if(is_array($message)) { |
|
| 98 | + if (is_array($message)) { |
|
| 99 | 99 | foreach ($message as $m) { |
| 100 | 100 | $errorMessages .= $m."\n"; |
| 101 | 101 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function append($validator) |
| 22 | 22 | { |
| 23 | - if(!$validator instanceof ValidatorInterface) { |
|
| 23 | + if (!$validator instanceof ValidatorInterface) { |
|
| 24 | 24 | throw new InvalidArgumentException('You can only append a Del\Form\Validator\ValidatorInterface.'); |
| 25 | 25 | } |
| 26 | 26 | parent::append($validator); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function append($filter) |
| 22 | 22 | { |
| 23 | - if(!$filter instanceof FilterInterface) { |
|
| 23 | + if (!$filter instanceof FilterInterface) { |
|
| 24 | 24 | throw new InvalidArgumentException('You can only append a Del\Form\Filter\FilterInterface.'); |
| 25 | 25 | } |
| 26 | 26 | parent::append($filter); |