Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unexpected double space between constants passed in method call #2177

Copy link
Copy link
Closed
@chalasr

Description

@chalasr
Issue body actions

Hi there,
here is the patch proposed:

- json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : 0);
+ json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT |  JSON_UNESCAPED_SLASHES : 0);

php-cs-fixer tries to add an additional space before JSON constants separated by a pipe, giving to spaces rather than one.

Here is the analysis ran by fabbot http://fabbot.io/report/symfony/symfony/19922/04275945efe1f0d035f1744543138804e3826c3e in symfony/symfony#19922.

Not sure about which fixer causes this as I don't know which are used or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.