Completed
Pull Request — master (#3039)
by
unknown
02:58
created
src/Form/Field/Select.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         $fieldsStr = implode('.', $fields);
205 205
         $urlsStr = implode('^', $sourceUrls);
206
-         $script = <<<EOT
206
+            $script = <<<EOT
207 207
 var fields = '$fieldsStr'.split('.');
208 208
 var urls = '$urlsStr'.split('^');
209 209
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      *
252 252
      * @return $this
253 253
      */
254
-     public function model($model, $idField = 'id', $textField = 'name')
254
+        public function model($model, $idField = 'id', $textField = 'name')
255 255
     {
256 256
         if (
257 257
             !class_exists($model)
@@ -341,11 +341,11 @@  discard block
 block discarded – undo
341 341
      *
342 342
      * @re tu rn $this
343 343
      */
344
-      public function ajax($url, $idField = 'id', $textField = 'text')
345
-     {
344
+        public function ajax($url, $idField = 'id', $textField = 'text')
345
+        {
346 346
         $configs = $this->configs([
347
-             'allowClear'         => true,
348
-             'placeholder'        => $this->label,
347
+                'allowClear'         => true,
348
+                'placeholder'        => $this->label,
349 349
             'minimumInputLength' => 1,
350 350
         ]);
351 351
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
     /**
410 410
      * {@inheritdoc}
411
-      */
411
+     */
412 412
     public function render()
413 413
     {
414 414
         Admin::js('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/i18n/' . app()->getLocale() . '.js');
Please login to merge, or discard this patch.