From ac06385e9a66d51f686b712a07d0f816a0b9d8d6 Mon Sep 17 00:00:00 2001 From: zackad Date: Tue, 3 Dec 2024 12:27:20 +0700 Subject: [PATCH] fix: add missing space after comma on call argument --- src/print/CallExpression.js | 2 +- tests/Experimental/__snapshots__/chain_indentation.snap.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/print/CallExpression.js b/src/print/CallExpression.js index f7e9e12..8d0993a 100644 --- a/src/print/CallExpression.js +++ b/src/print/CallExpression.js @@ -23,7 +23,7 @@ const p = (node, path, print, options) => { // there is exactly one object parameter parts.push(mappedArguments[0], ")"); } else if (options.experimentalMethodChainIndentation) { - parts.push(indent([join([","], mappedArguments)]), ")"); + parts.push(indent([join([", "], mappedArguments)]), ")"); } else { parts.push( indent([softline, join([",", line], mappedArguments)]), diff --git a/tests/Experimental/__snapshots__/chain_indentation.snap.twig b/tests/Experimental/__snapshots__/chain_indentation.snap.twig index e523e07..65b4a31 100644 --- a/tests/Experimental/__snapshots__/chain_indentation.snap.twig +++ b/tests/Experimental/__snapshots__/chain_indentation.snap.twig @@ -5,7 +5,7 @@ .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController') .setAction('edit') .setEntityId(tache.id) - .set('sort',null) + .set('sort', null) }}">