Passed
Push — master ( 9398c9...4aea45 )
by Abdul
02:32
created
src/ValidationAdaptor.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.