Completed
Push — master ( 98f010...a21586 )
by Propa
27:16 queued 06:19
created
src/Rules/Phone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,11 +142,11 @@
 block discarded – undo
142 142
         $parameters = implode(',', array_merge(
143 143
             $this->countries,
144 144
             $this->types,
145
-            ($this->countryField ? [$this->countryField]: []),
145
+            ($this->countryField ? [$this->countryField] : []),
146 146
             ($this->detect ? ['AUTO'] : []),
147 147
             ($this->lenient ? ['LENIENT'] : [])
148 148
         ));
149 149
 
150
-        return 'phone' . (! empty($parameters) ? ":$parameters" : '');
150
+        return 'phone'.(!empty($parameters) ? ":$parameters" : '');
151 151
     }
152 152
 }
153 153
\ No newline at end of file
Please login to merge, or discard this patch.
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
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $leftovers = array_diff_key($parameters, $types, $inputCountry ? [] : $countries);
119 119
         $leftovers = array_diff($leftovers, ['AUTO', 'LENIENT', $inputField]);
120 120
 
121
-        if (! empty($leftovers)) {
121
+        if (!empty($leftovers)) {
122 122
             throw InvalidParameterException::parameters($leftovers);
123 123
         }
124 124
 
Please login to merge, or discard this patch.