Passed
Push — master ( 05c834...72ff63 )
by Kirill
05:19 queued 11s
created
src/Validation/src/Checker/ArrayChecker.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function of($value, $checker): bool
31 31
     {
32
-        if (!is_array($value) || empty($value)) {
32
+        if (!is_array($value) || empty($value)){
33 33
             return false;
34 34
         }
35 35
 
36
-        foreach ($value as $item) {
37
-            if (!$this->validation->validate(compact('item'), ['item' => [$checker]])->isValid()) {
36
+        foreach ($value as $item){
37
+            if (!$this->validation->validate(compact('item'), ['item' => [$checker]])->isValid()){
38 38
                 return false;
39 39
             }
40 40
         }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function count($value, int $length): bool
46 46
     {
47
-        if (!is_array($value) && !$value instanceof \Countable) {
47
+        if (!is_array($value) && !$value instanceof \Countable){
48 48
             return false;
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function shorter($value, int $length): bool
55 55
     {
56
-        if (!is_array($value) && !$value instanceof \Countable) {
56
+        if (!is_array($value) && !$value instanceof \Countable){
57 57
             return false;
58 58
         }
59 59
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function longer($value, int $length): bool
64 64
     {
65
-        if (!is_array($value) && !$value instanceof \Countable) {
65
+        if (!is_array($value) && !$value instanceof \Countable){
66 66
             return false;
67 67
         }
68 68
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function range($value, int $min, int $max): bool
73 73
     {
74
-        if (!is_array($value) && !$value instanceof \Countable) {
74
+        if (!is_array($value) && !$value instanceof \Countable){
75 75
             return false;
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/Validation/tests/Checkers/ArrayTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
     private function createCountable(int $count): \Countable
81 81
     {
82
-        return new class($count) implements \Countable {
82
+        return new class($count) implements \Countable{
83 83
             private $count;
84 84
 
85 85
             public function __construct(int $count)
Please login to merge, or discard this patch.