Concatenation should be spaced according configuration.
Spacing to apply around concatenation operator.
Allowed values: 'none'
, 'one'
Default value: 'none'
Default configuration.
--- Original
+++ New
@@ -1,2 +1,2 @@
<?php
-$foo = 'bar' . 3 . 'baz'.'qux';
+$foo = 'bar'. 3 .'baz'.'qux';
With configuration: ['spacing' => 'none']
.
--- Original
+++ New
@@ -1,2 +1,2 @@
<?php
-$foo = 'bar' . 3 . 'baz'.'qux';
+$foo = 'bar'. 3 .'baz'.'qux';
With configuration: ['spacing' => 'one']
.
--- Original
+++ New
@@ -1,2 +1,2 @@
<?php
-$foo = 'bar' . 3 . 'baz'.'qux';
+$foo = 'bar' . 3 . 'baz' . 'qux';
The rule is part of the following rule sets:
- @PhpCsFixer
- Using the @PhpCsFixer rule set will enable the
concat_space
rule with the default config. - @Symfony
- Using the @Symfony rule set will enable the
concat_space
rule with the default config.