| @@ -85,7 +85,7 @@ | ||
| 85 | 85 |      { | 
| 86 | 86 | $passed = true; | 
| 87 | 87 |          foreach ($this->fieldsets as $key => $fieldset) { | 
| 88 | -            if (! $fieldset->filter()) { | |
| 88 | +            if (!$fieldset->filter()) { | |
| 89 | 89 | $passed = false; | 
| 90 | 90 | } | 
| 91 | 91 | } | 
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | */ | 
| 75 | 75 | public function fill(array $data) | 
| 76 | 76 |      { | 
| 77 | -        if ($this->anti_csrf && ! $this->anti_csrf->isValid($data)) { | |
| 77 | +        if ($this->anti_csrf && !$this->anti_csrf->isValid($data)) { | |
| 78 | 78 | throw new Exception\CsrfViolation; | 
| 79 | 79 | } | 
| 80 | 80 | parent::fill($data); | 
| @@ -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 | |
| @@ -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 | } | 
| @@ -73,7 +73,7 @@ discard block | ||
| 73 | 73 | */ | 
| 74 | 74 | public function newField($name, $type = null) | 
| 75 | 75 |      { | 
| 76 | -        if (! $type) { | |
| 76 | +        if (!$type) { | |
| 77 | 77 | $type = 'text'; | 
| 78 | 78 | } | 
| 79 | 79 | $class = $this->field_class; | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 | */ | 
| 98 | 98 | public function newFieldset($name, $type = null, $options = null) | 
| 99 | 99 |      { | 
| 100 | -        if (! $type) { | |
| 100 | +        if (!$type) { | |
| 101 | 101 | $type = $name; | 
| 102 | 102 | } | 
| 103 | 103 | $factory = $this->fieldset_map[$type]; | 
| @@ -119,7 +119,7 @@ discard block | ||
| 119 | 119 | */ | 
| 120 | 120 | public function newCollection($name, $type = null) | 
| 121 | 121 |      { | 
| 122 | -        if (! $type) { | |
| 122 | +        if (!$type) { | |
| 123 | 123 | $type = $name; | 
| 124 | 124 | } | 
| 125 | 125 | $class = $this->collection_class; | 
| @@ -143,7 +143,7 @@ discard block | ||
| 143 | 143 | */ | 
| 144 | 144 | public function __isset($name) | 
| 145 | 145 |      { | 
| 146 | -        if (! isset($this->inputs[$name])) { | |
| 146 | +        if (!isset($this->inputs[$name])) { | |
| 147 | 147 | return false; | 
| 148 | 148 | } | 
| 149 | 149 | |
| @@ -189,7 +189,7 @@ discard block | ||
| 189 | 189 | */ | 
| 190 | 190 | public function getInput($name) | 
| 191 | 191 |      { | 
| 192 | -        if (! isset($this->inputs[$name])) { | |
| 192 | +        if (!isset($this->inputs[$name])) { | |
| 193 | 193 | throw new Exception\NoSuchInput($name); | 
| 194 | 194 | } | 
| 195 | 195 | |
| @@ -364,7 +364,7 @@ discard block | ||
| 364 | 364 | // Iterate on fieldset or collection and get failures | 
| 365 | 365 |          foreach ($this->inputs as $name => $input) { | 
| 366 | 366 |              if ($input instanceof Fieldset || $input instanceof Collection) { | 
| 367 | -                if (! $input->filter()) { | |
| 367 | +                if (!$input->filter()) { | |
| 368 | 368 | $this->success = false; | 
| 369 | 369 | $failures = $input->getFailures(); | 
| 370 | 370 |                      if ($failures instanceof FailureCollectionInterface) { | 
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | */ | 
| 57 | 57 | public function newInstance($name, $options = null) | 
| 58 | 58 |      { | 
| 59 | -        if (! isset($this->map[$name])) { | |
| 59 | +        if (!isset($this->map[$name])) { | |
| 60 | 60 | throw new Exception\NoSuchForm($name); | 
| 61 | 61 | } | 
| 62 | 62 | |