Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Basic PSR-2 error fixes from running phpcbf #241

Merged
merged 4 commits into from May 12, 2017
Merged

Basic PSR-2 error fixes from running phpcbf #241

merged 4 commits into from May 12, 2017

Conversation

padraic
Copy link
Collaborator

@padraic padraic commented May 5, 2017

Adds additional PSR-2 fixes from implementing #240. PHP CodeSniffer is stricter than StyleCI, but usually for fairly inconsequential things. This just cleans those up so using composer cs-check doesn't explode.

@theofidry
Copy link
Member

StyleCI is failing due to trailing spaces

@theofidry
Copy link
Member

Not sure about the AppVeyor failure though, looks weird

@GrahamCampbell
Copy link
Contributor

StyleCI will fix more things if you enable more fixers. The "recommended" preset is very good, and can be tweaked if needed.

@GrahamCampbell
Copy link
Contributor

There are a small number of fixers that go slightly beyond PSR-2, so couldn't be included in the preset, but can be used to enforce a slightly stricter version of PSR-2.

@padraic
Copy link
Collaborator Author

padraic commented May 6, 2017

@theofidry The Appveyor CI is pending #232

@GrahamCampbell The SyleCI interpretation of PSR2 is fine. If anything, I'd go in the other direction and exclude a sniff or two from phpcs where it goes over the standard. I don't think I can selectively add an additional one though (phpcs is not spotting all trailing whitespace as my last commit fixed).

@padraic padraic merged commit 92d247a into master May 12, 2017
@padraic padraic deleted the ci/style-fixes branch May 12, 2017 11:55
tabbabi pushed a commit to tabbabi/humbug that referenced this pull request Aug 4, 2017
tabbabi pushed a commit to tabbabi/humbug that referenced this pull request Aug 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants