Completed
Push — master ( 408da6...f65d4e )
by Propa
03:02
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
             static::parseTypes($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
 }
Please login to merge, or discard this patch.
src/Traits/ParsesTypes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public static function isValidType($type)
24 24
     {
25
-        return ! empty(static::parseTypes($type));
25
+        return !empty(static::parseTypes($type));
26 26
     }
27 27
 
28 28
     /**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         static::loadTypes();
37 37
 
38 38
         return Collection::make(is_array($types) ? $types : func_get_args())
39
-                         ->map(function ($type) {
39
+                         ->map(function($type) {
40 40
                              // If the type equals a constant's value, just return it.
41 41
                              if (is_numeric($type) && in_array($type, static::$resolvedTypes)) {
42 42
                                  return (int) $type;
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                              // Otherwise we'll assume the type is the constant's name.
46 46
                              return Arr::get(static::$resolvedTypes, strtoupper($type));
47 47
                          })
48
-                         ->reject(function ($value) {
48
+                         ->reject(function($value) {
49 49
                              return is_null($value) || $value === false;
50 50
                          })->toArray();
51 51
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     private static function loadTypes()
75 75
     {
76
-        if (! static::$resolvedTypes) {
76
+        if (!static::$resolvedTypes) {
77 77
             static::$resolvedTypes = with(new ReflectionClass(PhoneNumberType::class))->getConstants();
78 78
         }
79 79
     }
Please login to merge, or discard this patch.