Skip to content

Space after brace and PSR-2 #347

Closed
Closed
@Yumash

Description

@Yumash

Found a strange error in Jenkins
2014-12-08 11 27 40

phpcs --report=full --standard=PSR2 ChecklistController.php

FILE: ...jobs/2report_dev/workspace/frontend/controllers/ChecklistController.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
...
 168 | ERROR | [x] Expected 1 space after closing brace; newline found

So i didn't found a word in PSR-2 about needing a space before newline. Maybe there's a bug that CS does not tract newline as a space?

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