Passed
Push — develop-v4 ( 0981e2...b12784 )
by Andrew
04:05
created
src/fields/Code.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function getSettingsHtml(): ?string
181 181
     {
182
-        $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php');
182
+        $monacoLanguages = require(__DIR__.'/MonacoLanguages.php');
183 183
         $schemaFilePath = Craft::getAlias('@nystudio107/codefield/resources/IEditorOptionsSchema.json');
184 184
         $optionsSchema = @file_get_contents($schemaFilePath) ?: '';
185 185
         // Render the settings template
@@ -205,14 +205,14 @@  discard block
 block discarded – undo
205 205
         // Extract just the languages that have been selected for display
206 206
         $displayLanguages = [];
207 207
         if ($this->showLanguageDropdown) {
208
-            $monacoLanguages = require(__DIR__ . '/MonacoLanguages.php');
208
+            $monacoLanguages = require(__DIR__.'/MonacoLanguages.php');
209 209
             $decomposedLanguages = array_column($monacoLanguages, 'label', 'value');
210 210
             $displayLanguages = array_intersect_key($decomposedLanguages, array_flip($this->availableLanguages));
211 211
             // Handle "all" checkbox
212 212
             if ($this->availableLanguages[0] === '*') {
213 213
                 $displayLanguages = $decomposedLanguages;
214 214
             }
215
-            $displayLanguages = array_map(static function ($k, $v) {
215
+            $displayLanguages = array_map(static function($k, $v) {
216 216
                 return ['value' => $k, 'label' => $v];
217 217
             }, array_keys($displayLanguages), array_values($displayLanguages));
218 218
         }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * @inheritdoc
241 241
      */
242
-    public function getContentGqlType(): Type|array
242
+    public function getContentGqlType(): Type | array
243 243
     {
244 244
         $typeArray = CodeDataGenerator::generateTypes($this);
245 245
 
Please login to merge, or discard this patch.