@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | public function getSettingsHtml(): ?string |
130 | 130 | { |
131 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
131 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
132 | 132 | // Render the settings template |
133 | 133 | return Craft::$app->getView()->renderTemplate( |
134 | 134 | 'codefield/_components/fields/Code_settings', |
@@ -151,10 +151,10 @@ discard block |
||
151 | 151 | // Extract just the languages that have been selected for display |
152 | 152 | $displayLanguages = []; |
153 | 153 | if ($this->showLanguageDropdown) { |
154 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
154 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
155 | 155 | $decomposedLanguages = array_column($monacoLanguages, 'label', 'value'); |
156 | 156 | $displayLanguages = array_intersect_key($decomposedLanguages, array_flip($this->availableLanguages)); |
157 | - $displayLanguages = array_map(static function ($k, $v) { |
|
157 | + $displayLanguages = array_map(static function($k, $v) { |
|
158 | 158 | return ['value' => $k, 'label' => $v]; |
159 | 159 | }, array_keys($displayLanguages), array_values($displayLanguages)); |
160 | 160 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | Event::on( |
70 | 70 | Fields::class, |
71 | 71 | Fields::EVENT_REGISTER_FIELD_TYPES, |
72 | - static function (RegisterComponentTypesEvent $event) { |
|
72 | + static function(RegisterComponentTypesEvent $event) { |
|
73 | 73 | $event->types[] = Code::class; |
74 | 74 | } |
75 | 75 | ); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | Event::on( |
78 | 78 | Plugins::class, |
79 | 79 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
80 | - function (PluginEvent $event) { |
|
80 | + function(PluginEvent $event) { |
|
81 | 81 | if ($event->plugin === $this) { |
82 | 82 | } |
83 | 83 | } |