Completed
Push — master ( d6d70b...37a15b )
by Hannes
01:12
created
src/AbstractValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/Invalid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/Valid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/ArrayValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         if (!$this->ignoreUnknown && $diff = array_diff_key($data, $this->validators)) {
59 59
             foreach (array_keys($diff) as $unknown) {
60
-                $errors[(string)$unknown] = "Unknown input item $unknown";
60
+                $errors[(string) $unknown] = "Unknown input item $unknown";
61 61
             }
62 62
         }
63 63
 
Please login to merge, or discard this patch.
src/ArrayResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
Please login to merge, or discard this patch.
src/Rule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace hanneskod\clean;
6 6
 
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function regexp(string $regexp): Rule
73 73
     {
74
-        return $this->match('is_string', function (string $value) use ($regexp): bool {
75
-            return (bool)preg_match($regexp, $value);
74
+        return $this->match('is_string', function(string $value) use ($regexp): bool {
75
+            return (bool) preg_match($regexp, $value);
76 76
         });
77 77
     }
78 78
 
Please login to merge, or discard this patch.