Completed
Pull Request — master (#115)
by
unknown
22:02
created
src/PhoneNumber.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function formatForCountry($country)
172 172
     {
173
-        if (! static::isValidCountryCode($country)) {
173
+        if (!static::isValidCountryCode($country)) {
174 174
             throw CountryCodeException::invalid($country);
175 175
         }
176 176
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function formatForMobileDialingInCountry($country, $removeFormatting = false)
192 192
     {
193
-        if (! static::isValidCountryCode($country)) {
193
+        if (!static::isValidCountryCode($country)) {
194 194
             throw CountryCodeException::invalid($country);
195 195
         }
196 196
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function getCountry()
210 210
     {
211
-        if (! $this->country) {
211
+        if (!$this->country) {
212 212
             $this->country = $this->filterValidCountry($this->countries);
213 213
         }
214 214
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     protected function filterValidCountry($countries)
239 239
     {
240 240
         $result = Collection::make($countries)
241
-                            ->filter(function ($country) {
241
+                            ->filter(function($country) {
242 242
                                 try {
243 243
                                     $instance = $this->lib->parse($this->number, $country);
244 244
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
                 $this->getPhoneNumberInstance(),
416 416
                 $this->getCountry()
417 417
             );
418
-        } catch(Exception $exception) {
418
+        } catch (Exception $exception) {
419 419
             return false;
420 420
         }
421 421
     }
Please login to merge, or discard this patch.