Completed
Pull Request — master (#3072)
by
unknown
03:16
created
src/Form/Field/Select.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         if (is_callable($options)) {
62 62
             $this->options = $options;
63 63
         } else {
64
-            $this->options = (array)$options;
64
+            $this->options = (array) $options;
65 65
         }
66 66
 
67 67
         return $this;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             throw new \InvalidArgumentException("[$model] must be a valid model class");
208 208
         }
209 209
 
210
-        $this->options = function ($value) use ($model, $idField, $textField) {
210
+        $this->options = function($value) use ($model, $idField, $textField) {
211 211
             if (empty($value)) {
212 212
                 return [];
213 213
             }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     protected function loadRemoteOptions($url, $parameters = [], $options = [])
243 243
     {
244 244
         $ajaxOptions = [
245
-            'url' => $url . '?' . http_build_query($parameters),
245
+            'url' => $url.'?'.http_build_query($parameters),
246 246
         ];
247 247
         $configs = array_merge([
248 248
             'allowClear'         => true,
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
             'groups'  => $this->groups,
422 422
         ]);
423 423
 
424
-        $this->attribute('data-value', implode(',', (array)$this->value()));
424
+        $this->attribute('data-value', implode(',', (array) $this->value()));
425 425
 
426 426
         return parent::render();
427 427
     }
Please login to merge, or discard this patch.