@@ -47,8 +47,8 @@ |
||
| 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( |
@@ -52,7 +52,7 @@ |
||
| 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 | } |
@@ -59,12 +59,12 @@ |
||
| 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() |
@@ -30,7 +30,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |