question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@Symfony and concat_space not correct.

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
StefanNiederkoflercommented, Mar 3, 2020

@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:

"[php]": {
    "editor.defaultFormatter": "junstyle.php-cs-fixer"
},
0reactions
junstylecommented, Sep 15, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found