Passed
Branch main (4188bc)
by Dimitri
15:54 queued 03:16
created
src/Rules/Titlecase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
      */
24 24
     public function check($value): bool
25 25
     {
26
-        if (! is_string($value)) {
26
+        if (!is_string($value)) {
27 27
             return false;
28 28
         }
29 29
 
30 30
         foreach ($this->getWords($value) as $word) {
31
-            if (! $this->isValidWord($word)) {
31
+            if (!$this->isValidWord($word)) {
32 32
                 return false;
33 33
             }
34 34
         }
Please login to merge, or discard this patch.
src/Rules/Missing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
      */
19 19
     public function check($value): bool
20 20
     {
21
-        return ! $this->validation->hasValue($this->attribute->getKey());
21
+        return !$this->validation->hasValue($this->attribute->getKey());
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Rules/Gtin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
      */
43 43
     public function check($value): bool
44 44
     {
45
-        if (! is_numeric($value)) {
45
+        if (!is_numeric($value)) {
46 46
             return false;
47 47
         }
48 48
 
49
-        if (! $this->hasAllowedLength($value)) {
49
+        if (!$this->hasAllowedLength($value)) {
50 50
             return false;
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Rules/Distinct.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function check($value): bool
45 45
     {
46
-        if (! is_array($value)) {
46
+        if (!is_array($value)) {
47 47
             if (null === $attribute = $this->attribute->getPrimaryAttribute()) {
48 48
                 return false;
49 49
             }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         }
56 56
 
57 57
         if (in_array('ignore_case', $this->parameters, true)) {
58
-            $value = array_map(function ($v) {
58
+            $value = array_map(function($v) {
59 59
                 if (is_string($v)) {
60 60
                     $v = strtolower($v);
61 61
                 }
Please login to merge, or discard this patch.
src/Rules/DoesntStartWith.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
      */
19 19
     public function check($value): bool
20 20
     {
21
-        return ! parent::check($value);
21
+        return !parent::check($value);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Rules/Gt.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
             $value = (string) $value;
30 30
         }
31 31
 
32
-        if (! is_string($value)) {
32
+        if (!is_string($value)) {
33 33
             return false;
34 34
         }
35 35
 
36
-        if (! is_numeric($compare = $this->parameter('value'))) {
36
+        if (!is_numeric($compare = $this->parameter('value'))) {
37 37
             $compare = $this->getAttribute()->getValue($compare);
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/Rules/TypeFloat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function check($value): bool
22 22
     {
23 23
         // https://www.php.net/manual/en/function.is-float.php#117304
24
-        if (! is_scalar($value)) {
24
+        if (!is_scalar($value)) {
25 25
             return false;
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Rules/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
      */
35 35
     public function check($value): bool
36 36
     {
37
-        if ((! is_string($value) && ! is_numeric($value) && ! ($value instanceof DateTimeInterface))) {
37
+        if ((!is_string($value) && !is_numeric($value) && !($value instanceof DateTimeInterface))) {
38 38
             return false;
39 39
         }
40 40
 
41
-        if (! empty($format = $this->parameter('format'))) {
41
+        if (!empty($format = $this->parameter('format'))) {
42 42
             $this->message .= ' format';
43 43
 
44 44
             $date = DateTime::createFromFormat($format, $value);
Please login to merge, or discard this patch.
src/Rules/AfterOrEqual.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,15 +35,15 @@
 block discarded – undo
35 35
         $this->requireParameters($this->fillableParams);
36 36
         $time = $this->parameter('time');
37 37
 
38
-        if (! $this->isValidDate($value)) {
38
+        if (!$this->isValidDate($value)) {
39 39
             throw $this->throwException($value);
40 40
         }
41 41
 
42
-        if (! $this->isValidDate($time)) {
42
+        if (!$this->isValidDate($time)) {
43 43
             $time = $this->getAttribute()->getValue($time);
44 44
         }
45 45
 
46
-        if (! $this->isValidDate($time)) {
46
+        if (!$this->isValidDate($time)) {
47 47
             throw $this->throwException($time);
48 48
         }
49 49
 
Please login to merge, or discard this patch.