Passed
Push — 1.x ( 625e1b...6eea3f )
by Milwad
06:03 queued 02:50
created
src/Utils/CountryPhoneCallback.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * @param  string  $code The country codes to validate against. String can be separated by comma
12 12
      * @param  string|null  $attribute
13 13
      */
14
-    public function __construct(private mixed $value, private string $code, string|null $attribute = null)
14
+    public function __construct(private mixed $value, private string $code, string | null $attribute = null)
15 15
     {
16 16
     }
17 17
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function callPhoneValidator(): array
128 128
     {
129
-        $results = [];
129
+        $results = [ ];
130 130
         $codes = explode(',', $this->code);
131 131
         $codes = array_map('strtoupper', $codes);
132 132
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             $methodName = 'validate'.$code;
135 135
 
136 136
             if (method_exists($this, $methodName)) {
137
-                $results[$code] = $this->{$methodName}();
137
+                $results[ $code ] = $this->{$methodName}();
138 138
             } else {
139 139
                 throw new \BadMethodCallException("Validator method '{$methodName}' does not exist.");
140 140
             }
Please login to merge, or discard this patch.