@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param string $name The input name. |
110 | 110 | * |
111 | - * @return mixed The input value. |
|
111 | + * @return AbstractInput The input value. |
|
112 | 112 | * |
113 | 113 | */ |
114 | 114 | public function __get($name) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * |
335 | 335 | * @param string $name The input name. |
336 | 336 | * |
337 | - * @return mixed |
|
337 | + * @return AbstractInput |
|
338 | 338 | * |
339 | 339 | */ |
340 | 340 | public function get($name = null) |
@@ -10,7 +10,6 @@ |
||
10 | 10 | */ |
11 | 11 | namespace Aura\Input; |
12 | 12 | |
13 | -use ArrayObject; |
|
14 | 13 | use Aura\Filter_Interface\FilterInterface; |
15 | 14 | use Aura\Filter_Interface\FailureCollectionInterface; |
16 | 15 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * |
81 | 81 | * @param string $message The message when the rule fails. |
82 | 82 | * |
83 | - * @param Closure $closure A closure that implements the rule. It must |
|
83 | + * @param \Closure $closure A closure that implements the rule. It must |
|
84 | 84 | * have the signature `function ($value, &$fields)`; it must return |
85 | 85 | * boolean true on success, or boolean false on failure. |
86 | 86 | * |
@@ -112,7 +112,7 @@ |
||
112 | 112 | // apply the closure to the data and get back the result |
113 | 113 | $passed = $closure($values->$field, $values); |
114 | 114 | |
115 | - if (! $passed) { |
|
115 | + if (!$passed) { |
|
116 | 116 | $this->failures->addMessagesForField($field, $message); |
117 | 117 | } |
118 | 118 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function addMessagesForField($field, $messages) |
48 | 48 | { |
49 | - if (! isset($this->messages[$field])) { |
|
49 | + if (!isset($this->messages[$field])) { |
|
50 | 50 | $this->messages[$field] = []; |
51 | 51 | } |
52 | 52 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getMessagesForField($field) |
81 | 81 | { |
82 | - if (! isset($this->messages[$field])) { |
|
82 | + if (!isset($this->messages[$field])) { |
|
83 | 83 | return array(); |
84 | 84 | } |
85 | 85 |