summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils/Formatter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php
index b9552bf..998d94b 100644
--- a/src/Utils/Formatter.php
+++ b/src/Utils/Formatter.php
@@ -390,7 +390,7 @@ class Formatter
if (!((($prev->type === Token::TYPE_OPERATOR) && (($prev->value === '.') || ($prev->value === '(')))
// No space after . (
|| (($curr->type === Token::TYPE_OPERATOR) && (($curr->value === '.') || ($curr->value === ',') || ($curr->value === '(') || ($curr->value === ')')))
- // No space before . , )
+ // No space before . , ( )
|| (($curr->type === Token::TYPE_DELIMITER)) && (mb_strlen($curr->value, 'UTF-8') < 2))
// A space after delimiters that are longer than 2 characters.
|| ($prev->value === 'DELIMITER')