-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add php-cs-fixer #5859
Add php-cs-fixer #5859
Conversation
7a9c611
to
cfe7111
Compare
Some tests fail with "composer not found" - could you have a look? |
cfe7111
to
cc516f2
Compare
Codecov Report
@@ Coverage Diff @@
## master #5859 +/- ##
============================================
- Coverage 53.01% 52.67% -0.34%
+ Complexity 22759 22743 -16
============================================
Files 1404 1406 +2
Lines 88059 88890 +831
Branches 1327 1327
============================================
+ Hits 46685 46824 +139
- Misses 41374 42066 +692
|
Conflicts 🙈 |
c1aec2c
to
4be09c3
Compare
Acceptance test failure:
|
2a30d59
to
b069ce6
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
a827037
to
e09879f
Compare
Codecov Report
@@ Coverage Diff @@
## master #5859 +/- ##
============================================
- Coverage 53.01% 52.56% -0.46%
+ Complexity 22759 22714 -45
============================================
Files 1404 1406 +2
Lines 88059 89369 +1310
Branches 1327 1327
============================================
+ Hits 46685 46975 +290
- Misses 41374 42394 +1020
|
e09879f
to
c287d55
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
c287d55
to
ef5ffa9
Compare
All green, all rebased! Quick @rullzer @MorrisJobke @nickvergessen review before everything starts conflicting again. |
I also did some smoketests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup, I like the consistency. Yet this was horrible to review 🙈
@@ -126,7 +125,7 @@ public function setName($name) { | |||
throw new \Sabre\DAV\Exception\Forbidden(); | |||
} | |||
|
|||
list($parentPath,) = \Sabre\HTTP\URLUtil::splitPath($this->path); | |||
list($parentPath, ) = \Sabre\HTTP\URLUtil::splitPath($this->path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting formatting 🙈
$this->currentStream = $this->getStream($this->nodes[0]); | ||
|
||
if (count( | ||
$this->nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does have to be on its own line? It's hard to read now
) > 0) { | ||
$this->currentStream = | ||
$this->getStream( | ||
$this->nodes[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to indent this line?
@@ -37,9 +37,11 @@ | |||
* @param int $seconds Seconds to look back at | |||
* @return int | |||
*/ | |||
public function getAttempts($methodIdentifier, | |||
public function getAttempts( | |||
$methodIdentifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't all parameters be indented by the same number of tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(saw the same issue at other methods too)
Conflicts \o/ - looks like it needs to be done in smaller steps. @icewind1991 |
$this->nodes | ||
) > 0) { | ||
$this->currentStream = | ||
$this->getStream( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also I'd expect this on the line with the =
While thinking more about this I'm not a fan of this. My bet is it leads to a lot of frustrated devs because they have to force push 5 times because there are tiny error according to the (limited) style rules... |
Let's not do this for now. Just too much hassle for very little advantage. |
Add php-cs-fixer rules, run them and add them to cli.
This also finally formalizes the coding standard to "PSR2 with tabs and braces on the same line" which seems to be the closest to what is currently used from what I can tell.
(also secretly part of my plan to ensure that I'm the top contributor by lines of code)