Completed
Push — L5.6 ( 96e785...6e02e0 )
by Propa
21:13
created
src/Validation/Phone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 $phoneNumber = PhoneNumber::make($value, $country);
61 61
 
62 62
                 // Type validation.
63
-                if (! empty($types) && ! $phoneNumber->isOfType($types)) {
63
+                if (!empty($types) && !$phoneNumber->isOfType($types)) {
64 64
                     continue;
65 65
                 }
66 66
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $leftovers = array_diff_key($parameters, $types, $countries);
121 121
         $leftovers = array_diff($leftovers, ['AUTO', 'LENIENT', $inputField]);
122 122
 
123
-        if (! empty($leftovers)) {
123
+        if (!empty($leftovers)) {
124 124
             throw InvalidParameterException::parameters($leftovers);
125 125
         }
126 126
 
Please login to merge, or discard this patch.
src/Exceptions/InvalidParameterException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public static function ambiguous($parameter)
14 14
     {
15
-        return new static('Ambiguous phone validation parameter: "' . $parameter . '". This parameter is recognized as an input field and as a phone type. Please rename the input field.');
15
+        return new static('Ambiguous phone validation parameter: "'.$parameter.'". This parameter is recognized as an input field and as a phone type. Please rename the input field.');
16 16
     }
17 17
 
18 18
     /**
@@ -25,6 +25,6 @@  discard block
 block discarded – undo
25 25
     {
26 26
         $parameters = Collection::make($parameters);
27 27
 
28
-        return new static('Invalid phone validation parameters: "' . $parameters->implode(',') . '".');
28
+        return new static('Invalid phone validation parameters: "'.$parameters->implode(',').'".');
29 29
     }
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.