@@ -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() |
@@ -52,36 +52,36 @@ |
||
| 52 | 52 | $count = 0; |
| 53 | 53 | |
| 54 | 54 | foreach ($parsed as $iconName => $iconData) { |
| 55 | - if (empty($iconData['styles'])) { |
|
| 55 | + if (empty($iconData[ 'styles' ])) { |
|
| 56 | 56 | continue; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - if (empty($iconData['label'])) { |
|
| 59 | + if (empty($iconData[ 'label' ])) { |
|
| 60 | 60 | continue; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - if (empty($iconData['unicode'])) { |
|
| 63 | + if (empty($iconData[ 'unicode' ])) { |
|
| 64 | 64 | continue; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $label = ucwords($iconData['label']); |
|
| 67 | + $label = ucwords($iconData[ 'label' ]); |
|
| 68 | 68 | |
| 69 | - foreach ($iconData['styles'] as $style) { |
|
| 69 | + foreach ($iconData[ 'styles' ] as $style) { |
|
| 70 | 70 | if ($style === 'regular') { |
| 71 | 71 | $count++; |
| 72 | - $unicodeOptionsRegular .= sprintf($optionTemplate, "far fa-$iconName", "&#x" . $iconData['unicode'], $label); |
|
| 72 | + $unicodeOptionsRegular .= sprintf($optionTemplate, "far fa-$iconName", "&#x" . $iconData[ 'unicode' ], $label); |
|
| 73 | 73 | $classOptionsRegular .= sprintf($optionTemplate, "far fa-$iconName", "far fa-$iconName", $label); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if ($style === 'solid') { |
| 77 | 77 | $count++; |
| 78 | - $unicodeOptionsSolid .= sprintf($optionTemplate, "fas fa-$iconName", "&#x" . $iconData['unicode'], $label); |
|
| 78 | + $unicodeOptionsSolid .= sprintf($optionTemplate, "fas fa-$iconName", "&#x" . $iconData[ 'unicode' ], $label); |
|
| 79 | 79 | $classOptionsSolid .= sprintf($optionTemplate, "fas fa-$iconName", "fas fa-$iconName", $label); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | if ($style === 'brands') { |
| 83 | 83 | $count++; |
| 84 | - $unicodeOptionsBrands .= sprintf($optionTemplate, "fab fa-$iconName","&#x" . $iconData['unicode'], $label); |
|
| 84 | + $unicodeOptionsBrands .= sprintf($optionTemplate, "fab fa-$iconName", "&#x" . $iconData[ 'unicode' ], $label); |
|
| 85 | 85 | $classOptionsBrands .= sprintf($optionTemplate, "fab fa-$iconName", "fab fa-$iconName", $label); |
| 86 | 86 | } |
| 87 | 87 | } |
@@ -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; |