@Symfony and concat_space not correct.
See original GitHub issueWhen im using the following rules "php-cs-fixer.rules": "@PSR2,@Symfony",
they are not being followed.
return ' ' . $test . ' ';
should be formatted to
return ' '.$test.' ';
When running php-cs-fixer fix /path/to/file --rules=@PSR2,@Symfony
this works.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
mysql - Trouble understanding a LIKE operator syntax - Stack Overflow
In that particular case is not working because the LIKE function is being used on many columns. You need a => WHERE x...
Read more >Path-aware fixer sets · Issue #3126 - GitHub
(ref. #3077) What about implementing a way to specify fixer sets that depend on the path of the file currently being fixed?
Read more >concat space in php codeigniter not working ← (PHP, CodeIgniter ...
Answer. Solution: Your quotes are all messed up. Try running this: function preparedBy($series){ $this->db->select('CONCAT (users.FirstName, users.
Read more >PrestaShop Developers' blog - RSSing.com
PrestaShop now clears the symfony cache when an action is performed on a module (install, uninstall, enable, …) This is necessary because ...
Read more >concat strings sql Code Example - Code Grepper
SELECT CONCAT(name, "string_value") AS name FROM users;
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@junstyle i have the same problem.
Config: “php-cs-fixer.rules”: “@PSR2,@Symfony”, “php-cs-fixer.config”: “”, Set for User and Workspace
PHP CS Fixer 2.16.1 Yellow Bird VSC 1.42.1
Test: return ’ ‘.$test.’ '; will be formatted always to return ’ ’ . $test . ’ '; which is wrong
when running php-cs-fixer fix /path/to/file --rules=@PSR2,@Symfony it works.
Any suggestion what i could try?
@michaelmano Have you found a solution?
€: I found the problem - it was a conflict with the PHP Intelephense Plugin. I leave the comment here, so if others have the same problem, they can find the solution. I had to set this setting:
what means “the spaces between the full stop”
if you config like this: “php-cs-fixer.rules”: “@PSR2,@Symfony”, “php-cs-fixer.config”: “”,
return ’ ’ . $test . ’ '; will be formatted to return ’ ‘.$test.’ ';
I tested!
PHP CS Fixer 2.6.0 Local Tavern by Fabien Potencier and Dariusz Ruminski