@@ -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 | }  | 
                                                        
@@ -52,12 +52,12 @@ discard block  | 
                                                    ||
| 52 | 52 | ?: GqlEntityRegistry::createEntity($typeName, new CodeDataType([  | 
                                                        
| 53 | 53 | 'name' => $typeName,  | 
                                                        
| 54 | 54 | 'description' => 'This entity has all the CodeData properties',  | 
                                                        
| 55 | -                'fields' => function () use ($codeDataFields) { | 
                                                        |
| 55 | +                'fields' => function() use ($codeDataFields) { | 
                                                        |
| 56 | 56 | return $codeDataFields;  | 
                                                        
| 57 | 57 | },  | 
                                                        
| 58 | 58 | ]));  | 
                                                        
| 59 | 59 | |
| 60 | -        TypeLoader::registerType($typeName, function () use ($codeDataType) { | 
                                                        |
| 60 | +        TypeLoader::registerType($typeName, function() use ($codeDataType) { | 
                                                        |
| 61 | 61 | return $codeDataType;  | 
                                                        
| 62 | 62 | });  | 
                                                        
| 63 | 63 | |
@@ -70,6 +70,6 @@ discard block  | 
                                                    ||
| 70 | 70 | public static function getName($context = null): string  | 
                                                        
| 71 | 71 |      { | 
                                                        
| 72 | 72 | /** @var Code $context */  | 
                                                        
| 73 | - return $context->handle . '_CodeData';  | 
                                                        |
| 73 | + return $context->handle.'_CodeData';  | 
                                                        |
| 74 | 74 | }  | 
                                                        
| 75 | 75 | }  | 
                                                        
@@ -157,7 +157,7 @@ discard block  | 
                                                    ||
| 157 | 157 | */  | 
                                                        
| 158 | 158 | public function getSettingsHtml(): ?string  | 
                                                        
| 159 | 159 |      { | 
                                                        
| 160 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php');  | 
                                                        |
| 160 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php');  | 
                                                        |
| 161 | 161 | // Render the settings template  | 
                                                        
| 162 | 162 | return Craft::$app->getView()->renderTemplate(  | 
                                                        
| 163 | 163 | 'codefield/_components/fields/Code_settings',  | 
                                                        
@@ -180,10 +180,10 @@ discard block  | 
                                                    ||
| 180 | 180 | // Extract just the languages that have been selected for display  | 
                                                        
| 181 | 181 | $displayLanguages = [];  | 
                                                        
| 182 | 182 |          if ($this->showLanguageDropdown) { | 
                                                        
| 183 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php');  | 
                                                        |
| 183 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php');  | 
                                                        |
| 184 | 184 | $decomposedLanguages = array_column($monacoLanguages, 'label', 'value');  | 
                                                        
| 185 | 185 | $displayLanguages = array_intersect_key($decomposedLanguages, array_flip($this->availableLanguages));  | 
                                                        
| 186 | -            $displayLanguages = array_map(static function ($k, $v) { | 
                                                        |
| 186 | +            $displayLanguages = array_map(static function($k, $v) { | 
                                                        |
| 187 | 187 | return ['value' => $k, 'label' => $v];  | 
                                                        
| 188 | 188 | }, array_keys($displayLanguages), array_values($displayLanguages));  | 
                                                        
| 189 | 189 | }  | 
                                                        
@@ -210,7 +210,7 @@ discard block  | 
                                                    ||
| 210 | 210 | /**  | 
                                                        
| 211 | 211 | * @inheritdoc  | 
                                                        
| 212 | 212 | */  | 
                                                        
| 213 | - public function getContentGqlType(): Type|array  | 
                                                        |
| 213 | + public function getContentGqlType(): Type | array  | 
                                                        |
| 214 | 214 |      { | 
                                                        
| 215 | 215 | $typeArray = CodeDataGenerator::generateTypes($this);  | 
                                                        
| 216 | 216 | |