@@ -118,6 +118,7 @@ |
||
| 118 | 118 | * Add a new cleaner associated to a key. |
| 119 | 119 | * |
| 120 | 120 | * @throws \InvalidArgumentException |
| 121 | + * @param string $name |
|
| 121 | 122 | */ |
| 122 | 123 | public function addCleaner($name, callable $cleaner): self |
| 123 | 124 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | /** @var array list of fields, this gives an information if the field |
| 36 | 36 | is mandatory or optional. */ |
| 37 | - protected $fields = []; |
|
| 37 | + protected $fields = []; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * getName |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $this |
| 108 | 108 | ->checkFieldExists($name) |
| 109 | - ->validators[$name][] = $validator |
|
| 109 | + ->validators[$name][] = $validator |
|
| 110 | 110 | ; |
| 111 | 111 | |
| 112 | 112 | return $this; |