@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\clean; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\clean; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\clean; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\clean; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\clean; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | |