Completed
Push — 3.x ( 98bb5a...238d5c )
by Hari
10s
created
src/Fieldset.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Filter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Filter/FailureCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.