Passed
Branch master (1a4920)
by Nurlan
04:20
created
src/RequestImpl.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,9 @@
 block discarded – undo
39 39
     private function parseObject($object)
40 40
     {
41 41
         foreach ($object as $key => $value) {
42
-            if (property_exists($this, $key))
43
-                $this->$key = $value;
42
+            if (property_exists($this, $key)) {
43
+                            $this->$key = $value;
44
+            }
44 45
         }
45 46
     }
46 47
 
Please login to merge, or discard this patch.
src/Validation/Validators/IsIpAddress.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
             return false;
25 25
         }
26 26
 
27
-		return inet_pton($value) !== false;
28
-	}
27
+        return inet_pton($value) !== false;
28
+    }
29 29
 }
Please login to merge, or discard this patch.
src/Validation/Validators/IsSame.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,9 @@
 block discarded – undo
42 42
             return true;
43 43
         }
44 44
 
45
-        if (!isset($this->against))
46
-            throw new ValidationException(self::ERROR_NO_MATCH);
45
+        if (!isset($this->against)) {
46
+                    throw new ValidationException(self::ERROR_NO_MATCH);
47
+        }
47 48
 
48 49
         if ($value === $this->against) {
49 50
             return true;
Please login to merge, or discard this patch.
src/Validation/Validators/IsPositiveInteger.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@
 block discarded – undo
22 22
      */
23 23
     public function check($value = null, ?bool $nullable = false): bool
24 24
     {
25
-        if (!parent::check($value, $nullable))
26
-            return false;
25
+        if (!parent::check($value, $nullable)) {
26
+                    return false;
27
+        }
27 28
 
28 29
         return $value > 0;
29 30
     }
Please login to merge, or discard this patch.
src/Validation/Validators/IsInArray.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,9 @@
 block discarded – undo
32 32
             return true;
33 33
         }
34 34
 
35
-        if (!is_array($this->haystack))
36
-            throw new ValidationException(self::ERROR_NO_ARRAY_DEFINED);
35
+        if (!is_array($this->haystack)) {
36
+                    throw new ValidationException(self::ERROR_NO_ARRAY_DEFINED);
37
+        }
37 38
 
38 39
         return in_array($value, $this->haystack, true);
39 40
     }
Please login to merge, or discard this patch.
src/Validation/Validators/IsUuid.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
             return true;
29 29
         }
30 30
 
31
-        if ((preg_match('/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/', (string)$value) !== 1))
32
-            return false;
31
+        if ((preg_match('/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/', (string)$value) !== 1)) {
32
+                    return false;
33
+        }
33 34
 
34 35
         return true;
35 36
     }
Please login to merge, or discard this patch.
src/Validation/Validators/IsIntegerNotEquals.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,9 @@
 block discarded – undo
45 45
             throw new ValidationException(self::ERROR_NOTHING_TO_COMPARE);
46 46
         }
47 47
 
48
-        if ($value === $this->against)
49
-            return false;
48
+        if ($value === $this->against) {
49
+                    return false;
50
+        }
50 51
 
51 52
         return true;
52 53
     }
Please login to merge, or discard this patch.
src/Validation/ValidationProcessImpl.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,9 @@
 block discarded – undo
37 37
      */
38 38
     public function add($valueOrEnclosure, Validator ...$validators): ValidationProcess
39 39
     {
40
-        foreach ($validators as $validator)
41
-            $this->elements[] = new ValidationElement($valueOrEnclosure, $validator);
40
+        foreach ($validators as $validator) {
41
+                    $this->elements[] = new ValidationElement($valueOrEnclosure, $validator);
42
+        }
42 43
 
43 44
         return $this;
44 45
     }
Please login to merge, or discard this patch.