@@ -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 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function __construct() |
41 | 41 | { |
42 | - $this->onException(function (\Exception $exception) { |
|
42 | + $this->onException(function(\Exception $exception) { |
|
43 | 43 | throw new Exception(sprintf($this->exceptionMessage, $exception->getMessage()), 0, $exception); |
44 | 44 | }); |
45 | 45 | } |
@@ -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 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function __construct(array $validators = []) |
28 | 28 | { |
29 | 29 | foreach ($validators as $name => $validator) { |
30 | - $this->addValidator((string)$name, $validator); |
|
30 | + $this->addValidator((string) $name, $validator); |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | isset($tainted[$name]) ? $tainted[$name] : null |
69 | 69 | ); |
70 | 70 | } catch (Exception $exception) { |
71 | - $exception->pushValidatorName((string)$name); |
|
71 | + $exception->pushValidatorName((string) $name); |
|
72 | 72 | $this->fireException($exception); |
73 | 73 | } catch (\Exception $exception) { |
74 | 74 | $this->fireException($exception); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | if (!$this->ignoreUnknown && $diff = array_diff_key($tainted, $this->validators)) { |
79 | 79 | $this->fireException( |
80 | - new Exception('Unknown input item(s): ' . implode(array_keys($diff), ', ')) |
|
80 | + new Exception('Unknown input item(s): '.implode(array_keys($diff), ', ')) |
|
81 | 81 | ); |
82 | 82 | } |
83 | 83 |
@@ -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 |