Completed
Push — master ( 1e391f...74eec6 )
by Gino
01:25
created
updates/populate_default_settings.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         if (Schema::hasTable('system_settings')) {
49 49
             $settings = [
50
-               Settings::FONTAWESOME_LINK_KEY => Settings::FONTAWESOME_LINK,
51
-               Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY => Settings::FONTAWESOME_LINK_ATTRIBUTES
50
+                Settings::FONTAWESOME_LINK_KEY => Settings::FONTAWESOME_LINK,
51
+                Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY => Settings::FONTAWESOME_LINK_ATTRIBUTES
52 52
             ];
53 53
 
54 54
             DB::table('system_settings')->insert(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             ];
53 53
 
54 54
             DB::table('system_settings')->insert(
55
-                ['item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings)]
55
+                [ 'item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings) ]
56 56
             );
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
formwidgets/AwesomeIconsList.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,12 +59,12 @@
 block discarded – undo
59 59
      */
60 60
     public function prepareVars()
61 61
     {
62
-        $this->vars['field'] = $this->formField;
63
-        $this->vars['unicodeValue'] = $this->unicodeValue;
64
-        $this->vars['placeholder'] = $this->placeholder;
65
-        $this->vars['emptyOption'] = $this->emptyOption;
62
+        $this->vars[ 'field' ] = $this->formField;
63
+        $this->vars[ 'unicodeValue' ] = $this->unicodeValue;
64
+        $this->vars[ 'placeholder' ] = $this->placeholder;
65
+        $this->vars[ 'emptyOption' ] = $this->emptyOption;
66 66
 
67
-        $this->vars['value'] = $this->getLoadValue();
67
+        $this->vars[ 'value' ] = $this->getLoadValue();
68 68
     }
69 69
 
70 70
     public function loadAssets()
Please login to merge, or discard this patch.
models/Settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     const SETTINGS_CODE = 'ginopane_awesomeiconslist';
32 32
 
33
-    public $implement = [SettingsModel::class];
33
+    public $implement = [ SettingsModel::class ];
34 34
 
35 35
     public $settingsCode = self::SETTINGS_CODE;
36 36
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function fontAwesomeLink() : string
43 43
     {
44 44
         $link = !empty($this->{self::FONTAWESOME_LINK_KEY})
45
-            ? (string) $this->{self::FONTAWESOME_LINK_KEY}
45
+            ? (string)$this->{self::FONTAWESOME_LINK_KEY}
46 46
             : self::FONTAWESOME_LINK;
47 47
 
48 48
         return $link;
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     public function fontAwesomeLinkAttributes(): array
55 55
     {
56 56
         $rawAttributes = !empty($this->{self::FONTAWESOME_LINK_ATTRIBUTES_KEY})
57
-            ? (array) $this->{self::FONTAWESOME_LINK_ATTRIBUTES_KEY}
57
+            ? (array)$this->{self::FONTAWESOME_LINK_ATTRIBUTES_KEY}
58 58
             : self::FONTAWESOME_LINK_ATTRIBUTES;
59 59
 
60
-        $attributes = [];
60
+        $attributes = [ ];
61 61
 
62 62
         foreach ($rawAttributes as $attribute) {
63
-            $attributes[$attribute['attribute']] = $attribute['value'];
63
+            $attributes[ $attribute[ 'attribute' ] ] = $attribute[ 'value' ];
64 64
         }
65 65
 
66 66
         return $attributes;
Please login to merge, or discard this patch.
updates/update_settings_to570.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,16 +63,16 @@
 block discarded – undo
63 63
         if (Schema::hasTable('system_settings')) {
64 64
             $currentSettings = DB::table('system_settings')->whereItem(Settings::SETTINGS_CODE)->pluck('value')->first();
65 65
 
66
-            $settings[Settings::FONTAWESOME_LINK_KEY ] = $link;
67
-            $settings[Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY] = $attributes;
66
+            $settings[ Settings::FONTAWESOME_LINK_KEY ] = $link;
67
+            $settings[ Settings::FONTAWESOME_LINK_ATTRIBUTES_KEY ] = $attributes;
68 68
 
69 69
             if ($currentSettings !== null) {
70 70
                 DB::table('system_settings')->whereItem(Settings::SETTINGS_CODE)->update(
71
-                    ['value' => json_encode($settings)]
71
+                    [ 'value' => json_encode($settings) ]
72 72
                 );
73 73
             } else {
74 74
                 DB::table('system_settings')->insert(
75
-                    ['item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings)]
75
+                    [ 'item' => Settings::SETTINGS_CODE, 'value' => json_encode($settings) ]
76 76
                 );
77 77
             }
78 78
         }
Please login to merge, or discard this patch.