Completed
Push — master ( 74eec6...73722f )
by Gino
01:25
created
updates/update_settings_to570.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace GinoPane\AwesomeIconsList\Updates;
4 4
 
5
-use DB;
6
-use Schema;
7
-use October\Rain\Database\Updates\Migration;
8
-
9 5
 /**
10 6
  * Class UpdateSettingsTo570
11 7
  *
Please login to merge, or discard this patch.
updates/update_settings_to572.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace GinoPane\AwesomeIconsList\Updates;
4 4
 
5
-use DB;
6
-use Schema;
7
-use October\Rain\Database\Updates\Migration;
8
-
9 5
 /**
10 6
  * Class UpdateSettingsTo572
11 7
  *
Please login to merge, or discard this patch.
updates/UpdateSettingsAbstract.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 abstract class UpdateSettingsAbstract extends Migration
16 16
 {
17 17
     protected static $PREVIOUS_FONTAWESOME_LINK = '';
18
-    protected static $PREVIOUS_FONTAWESOME_LINK_ATTRIBUTES = [];
18
+    protected static $PREVIOUS_FONTAWESOME_LINK_ATTRIBUTES = [ ];
19 19
 
20 20
     protected static $NEW_FONTAWESOME_LINK = '';
21
-    protected static $NEW_FONTAWESOME_LINK_ATTRIBUTES = [];
21
+    protected static $NEW_FONTAWESOME_LINK_ATTRIBUTES = [ ];
22 22
 
23 23
     /**
24 24
      * Execute migrations
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
         if (Schema::hasTable('system_settings')) {
46 46
             $currentSettings = DB::table('system_settings')->whereItem(Settings::SETTINGS_CODE)->pluck('value')->first();
47 47
 
48
-            $settings = [];
48
+            $settings = [ ];
49 49
 
50
-            $settings[Settings::FONTAWESOME_LINK_KEY ] = $link;
51
-            $settings[Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY] = $attributes;
50
+            $settings[ Settings::FONTAWESOME_LINK_KEY ] = $link;
51
+            $settings[ Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY ] = $attributes;
52 52
 
53 53
             if ($currentSettings !== null) {
54 54
                 DB::table('system_settings')->whereItem(Settings::SETTINGS_CODE)->update(
55
-                    ['value' => json_encode($settings)]
55
+                    [ 'value' => json_encode($settings) ]
56 56
                 );
57 57
             } else {
58 58
                 DB::table('system_settings')->insert(
59
-                    ['item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings)]
59
+                    [ 'item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings) ]
60 60
                 );
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
formwidgets/AwesomeIconsList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,13 +75,13 @@
 block discarded – undo
75 75
      */
76 76
     public function prepareVars()
77 77
     {
78
-        $this->vars['field'] = $this->formField;
79
-        $this->vars['unicodeValue'] = $this->unicodeValue;
80
-        $this->vars['placeholder'] = $this->placeholder;
81
-        $this->vars['emptyOption'] = $this->emptyOption;
82
-        $this->vars['iconTypes'] = $this->parseIconTypes((string) $this->iconTypes);
78
+        $this->vars[ 'field' ] = $this->formField;
79
+        $this->vars[ 'unicodeValue' ] = $this->unicodeValue;
80
+        $this->vars[ 'placeholder' ] = $this->placeholder;
81
+        $this->vars[ 'emptyOption' ] = $this->emptyOption;
82
+        $this->vars[ 'iconTypes' ] = $this->parseIconTypes((string)$this->iconTypes);
83 83
 
84
-        $this->vars['value'] = $this->getLoadValue();
84
+        $this->vars[ 'value' ] = $this->getLoadValue();
85 85
     }
86 86
 
87 87
     /**
Please login to merge, or discard this patch.