@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace TheSupportGroup\Common\ValidationAdaptor; |
4 | 4 | |
5 | -use TheSupportGroup\Common\ValidationInterop\ValidationProviderInterface; |
|
6 | 5 | use Exception; |
7 | 6 | |
8 | 7 | class ValidationAdaptor implements validationProviderInterface |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $this->validator = $validator; |
31 | 31 | |
32 | 32 | // Import mapping only once. |
33 | - if (! self::$validatorMapping) { |
|
33 | + if (!self::$validatorMapping) { |
|
34 | 34 | self::$validatorMapping = require __DIR__ . '/Mapping/Mapping.php'; |
35 | 35 | } |
36 | 36 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function getMappedMethod($method) |
73 | 73 | { |
74 | 74 | // Check if the method called is provided in the mapping. |
75 | - if (! array_key_exists($method, self::$validatorMapping)) { |
|
75 | + if (!array_key_exists($method, self::$validatorMapping)) { |
|
76 | 76 | throw new Exception(sprintf( |
77 | 77 | 'Mapping for method "%s" not found, make sure it exists in the mapping file.', |
78 | 78 | $method |