@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function __toString(): string |
43 | 43 | { |
44 | - return (string)$this->value; |
|
44 | + return (string) $this->value; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * @inheritdoc |
120 | 120 | */ |
121 | - public static function dbType(): array|string|null |
|
121 | + public static function dbType(): array | string | null |
|
122 | 122 | { |
123 | 123 | return Schema::TYPE_TEXT; |
124 | 124 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | public function __construct(array $config = []) |
141 | 141 | { |
142 | 142 | // Unset any deprecated properties |
143 | - foreach(self::DEPRECATED_PROPERTIES as $deprecatedProperty) { |
|
143 | + foreach (self::DEPRECATED_PROPERTIES as $deprecatedProperty) { |
|
144 | 144 | unset($config[$deprecatedProperty]); |
145 | 145 | } |
146 | 146 | parent::__construct($config); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function getSettingsHtml(): ?string |
206 | 206 | { |
207 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
207 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
208 | 208 | $schemaFilePath = Craft::getAlias('@nystudio107/codefield/resources/IEditorOptionsSchema.json'); |
209 | 209 | $optionsSchema = @file_get_contents($schemaFilePath) ?: ''; |
210 | 210 | // Render the settings template |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | /** |
248 | 248 | * @inheritdoc |
249 | 249 | */ |
250 | - public function getContentGqlType(): Type|array |
|
250 | + public function getContentGqlType(): Type | array |
|
251 | 251 | { |
252 | 252 | $typeArray = CodeDataGenerator::generateTypes($this); |
253 | 253 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | // Extract just the languages that have been selected for display |
300 | 300 | $displayLanguages = []; |
301 | 301 | if ($this->showLanguageDropdown) { |
302 | - $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php'); |
|
302 | + $monacoLanguages = require(__DIR__.'/MonacoLanguages.php'); |
|
303 | 303 | $decomposedLanguages = array_column($monacoLanguages, 'label', 'value'); |
304 | 304 | $displayLanguages = array_intersect_key($decomposedLanguages, array_flip($this->availableLanguages)); |
305 | 305 | // Handle "all" checkbox |
@@ -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 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
7 | 7 | use Symplify\EasyCodingStandard\ValueObject\Option; |
8 | 8 | |
9 | -return static function (ECSConfig $ecsConfig): void { |
|
9 | +return static function(ECSConfig $ecsConfig): void { |
|
10 | 10 | $parameters = $ecsConfig->parameters(); |
11 | 11 | $parameters->set(Option::PARALLEL, true); |
12 | 12 | $ecsConfig->import(CraftSetList::CRAFT_CMS_4); |