@@ -70,6 +70,6 @@ |
||
| 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 | } |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | return static function(ECSConfig $ecsConfig): void { |
| 7 | 7 | $ecsConfig->paths([ |
| 8 | - __DIR__ . '/src', |
|
| 8 | + __DIR__.'/src', |
|
| 9 | 9 | __FILE__, |
| 10 | 10 | ]); |
| 11 | 11 | $ecsConfig->parallel(); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | public function getSettingsHtml(): ?string |
| 180 | 180 | { |
| 181 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
| 181 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
| 182 | 182 | $schemaFilePath = Craft::getAlias('@nystudio107/codefield/resources/IEditorOptionsSchema.json'); |
| 183 | 183 | $optionsSchema = @file_get_contents($schemaFilePath) ?: ''; |
| 184 | 184 | // Render the settings template |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | /** |
| 222 | 222 | * @inheritdoc |
| 223 | 223 | */ |
| 224 | - public function getContentGqlType(): Type|array |
|
| 224 | + public function getContentGqlType(): Type | array |
|
| 225 | 225 | { |
| 226 | 226 | $typeArray = CodeDataGenerator::generateTypes($this); |
| 227 | 227 | |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | // Extract just the languages that have been selected for display |
| 286 | 286 | $displayLanguages = []; |
| 287 | 287 | if ($this->showLanguageDropdown) { |
| 288 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
| 288 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
| 289 | 289 | $decomposedLanguages = array_column($monacoLanguages, 'label', 'value'); |
| 290 | 290 | $displayLanguages = array_intersect_key($decomposedLanguages, array_flip($this->availableLanguages)); |
| 291 | 291 | // Handle "all" checkbox |