Passed
Push — master ( 874b96...7ab238 )
by Petr
08:04
created
php-tests/CommonTestClass.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@
 block discarded – undo
50 50
 
51 51
     public function remove(string $key): bool
52 52
     {
53
-        if (isset($this->content[$key])) unset($this->content[$key]);
53
+        if (isset($this->content[$key])) {
54
+            unset($this->content[$key]);
55
+        }
54 56
         return true;
55 57
     }
56 58
 
Please login to merge, or discard this patch.
php-src/Form.php 1 patch
Braces   +13 added lines, -4 removed lines patch added patch discarded remove patch
@@ -220,8 +220,12 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function setSentValues(): void
222 222
     {
223
-        if ($this->files) $this->setValues($this->setValuesToFill($this->files, true));
224
-        if ($this->entries) $this->setValues($this->setValuesToFill($this->entries));
223
+        if ($this->files) {
224
+            $this->setValues($this->setValuesToFill($this->files, true));
225
+        }
226
+        if ($this->entries) {
227
+            $this->setValues($this->setValuesToFill($this->entries));
228
+        }
225 229
     }
226 230
 
227 231
     /**
@@ -276,7 +280,10 @@  discard block
 block discarded – undo
276 280
      */
277 281
     public function store(): void
278 282
     {
279
-        if ($this->storage) $this->storage->store($this->getValues(), 86400); # day
283
+        if ($this->storage) {
284
+            $this->storage->store($this->getValues(), 86400);
285
+        }
286
+        # day
280 287
     }
281 288
 
282 289
     /**
@@ -285,7 +292,9 @@  discard block
 block discarded – undo
285 292
      */
286 293
     public function loadStored(): void
287 294
     {
288
-        if ($this->storage) $this->setValues($this->storage->load());
295
+        if ($this->storage) {
296
+            $this->setValues($this->storage->load());
297
+        }
289 298
     }
290 299
 
291 300
     /**
Please login to merge, or discard this patch.