Completed
Push — master ( b286ff...53e76c )
by Adrian
04:28
created
src/Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
         $preparableMethods = array('prepareValidator', 'prepareFiltrator', 'prepareUploadHandlers');
173 173
         foreach ($preparableMethods as $method) {
174 174
             if (method_exists($this, $method)) {
175
-                call_user_func(array( $this, $method), $inputFilter);
175
+                call_user_func(array($this, $method), $inputFilter);
176 176
             }
177 177
         }
178 178
     }
Please login to merge, or discard this patch.
src/InputFilter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -77,17 +77,17 @@  discard block
 block discarded – undo
77 77
         ValidatorInterface $validator = null,
78 78
         FiltratorInterface $filtrator = null
79 79
     ) {
80
-        if ( ! $elementFactory) {
80
+        if (!$elementFactory) {
81 81
             $elementFactory = new ElementFactory();
82 82
         }
83 83
         $this->elementFactory = $elementFactory;
84 84
 
85
-        if ( ! $validator) {
85
+        if (!$validator) {
86 86
             $validator = new Validator();
87 87
         }
88 88
         $this->validator = $validator;
89 89
 
90
-        if ( ! $filtrator) {
90
+        if (!$filtrator) {
91 91
             $filtrator = new Filtrator();
92 92
         }
93 93
         $this->filtrator = $filtrator;
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
      */
151 151
     function prepare($force = false)
152 152
     {
153
-        if ($this->isPrepared && ! $force) {
153
+        if ($this->isPrepared && !$force) {
154 154
             return $this;
155 155
         }
156 156
         $this->init();
157
-        if ( ! $this->isInitialized()) {
157
+        if (!$this->isInitialized()) {
158 158
             throw new \LogicException('Input was not properly initialized');
159 159
         }
160 160
 
@@ -198,12 +198,12 @@  discard block
 block discarded – undo
198 198
     protected function prepareFiltration()
199 199
     {
200 200
         $filters = $this->getFilters();
201
-        if ( ! is_array($filters) || empty($filters)) {
201
+        if (!is_array($filters) || empty($filters)) {
202 202
             return;
203 203
         }
204 204
         $filtrator = $this->getFiltrator();
205 205
         foreach ($filters as $filter) {
206
-            $params = is_array($filter) ? $filter : array( $filter );
206
+            $params = is_array($filter) ? $filter : array($filter);
207 207
             if (isset($params[0])) {
208 208
                 $filtrator->add(Filtrator::SELECTOR_ROOT, $params[0], @$params[1], @$params[2], @$params[3]);
209 209
             }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     function getUploadHandlers()
250 250
     {
251
-        if ( ! $this->uploadHandlers) {
251
+        if (!$this->uploadHandlers) {
252 252
             $this->uploadHandlers = new UploadHandlerAggregate;
253 253
         }
254 254
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     function populate($values = array())
284 284
     {
285 285
         $this->prepare();
286
-        if ( ! $this->isPrepared()) {
286
+        if (!$this->isPrepared()) {
287 287
             throw new \LogicException('Input was not prepared and cannot receive data');
288 288
         }
289 289
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     function isValid($skipDataProcessing = false)
334 334
     {
335
-        if ( ! $skipDataProcessing) {
335
+        if (!$skipDataProcessing) {
336 336
             $this->values = $this->getFiltrator()->filter($this->rawValues);
337 337
         }
338 338
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         $validator = $this->getValidator();
341 341
         $validator->validate($this->values);
342 342
 
343
-        if ( ! $skipDataProcessing) {
343
+        if (!$skipDataProcessing) {
344 344
             $this->processUploads();
345 345
         }
346 346
 
Please login to merge, or discard this patch.