Passed
Push — v5 ( 3f609b...2ad962 )
by Andrew
06:48 queued 16s
created
Category
src/models/CodeData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/fields/Code.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/gql/types/generators/CodeDataGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.