Passed
Push — v5 ( 1b075a...467c6f )
by Andrew
20:32 queued 15:03
created
src/fields/Recipe.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @inheritdoc
49 49
      */
50
-    public static function dbType(): array|string|null
50
+    public static function dbType(): array | string | null
51 51
     {
52 52
         return Schema::TYPE_TEXT;
53 53
     }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             'prefix' => Craft::$app->getView()->namespaceInputId(''),
172 172
         ];
173 173
         $jsonVars = Json::encode($jsonVars);
174
-        Craft::$app->getView()->registerJs(sprintf('$(\'#%s-field\').RecipeRecipe(', $nameSpacedId) . $jsonVars . ");");
174
+        Craft::$app->getView()->registerJs(sprintf('$(\'#%s-field\').RecipeRecipe(', $nameSpacedId).$jsonVars.");");
175 175
 
176 176
         // Set asset elements
177 177
         $elements = [];
Please login to merge, or discard this patch.