-
Notifications
You must be signed in to change notification settings - Fork 379
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
Update Source to Newly Merged Style Rule Additions #800
Conversation
d49f101
to
dcacf9f
Compare
dcacf9f
to
cec4e71
Compare
@@ -132,7 +141,7 @@ public function store(BinaryInterface $binary, $path, $filter) | |||
$this->flysystem->put( | |||
$this->getFilePath($path, $filter), | |||
$binary->getContent(), | |||
['visibility' => $this->visibility] |
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.
looks like this caught another use of short array syntax which means this isn't tested
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.
Yeah, the the travis file always excluded flysystem
from PHP 5.3 runs. I assumed FlySystem requires a higher PHP version, but if that's not the case we should obviously be testing it! I'll take a look at flysystems composer when I get a second.
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.
@lsmith77 Yup, FlySystem requires PHP > 5.4, so that's why it is excluded from 5.3 builds on travis and why the above wasn't being tested.
This replaces #791 (which was done prior to the new "style rules" and "php-cs-fixer bridge" additions using a hand crafted regex of mine - I feel more comfortable having a real code tokenizer/lexer do it instead, heh).
So, this is simple a PHP CS Fixer run using our new default rule set.
While the change set is substantial in size, its actually quite simple. All the changes relate to one of the following three rules:
The only, singular exception to my above assertion is a short-array to long-array syntax fix caught the fixer.
Hopefully people run this more often now! Remember, it's as easy as this now: