-
Notifications
You must be signed in to change notification settings - Fork 27
Enable phpcs for Travis + more #51
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
Conversation
- Update phpunit. - Update sigmoidal contrast example. - Fix regression from libvips#49. - Rename the test files and apply the correct namespace.
tests/ShortcutTest.php
Outdated
} | ||
$real = self::mapNumeric($this->pixel, function ($value) { | ||
// FIXME: Left and right operands are identical | ||
return $value > $value ? 255 : 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.
Should we just return 0
here?
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.
I agree, perhaps with a comment saying something like "(x > x) is always false".
Lots of nice improvements Kleis! |
I think we could enable phpcs warnings if we exclude |
+ bump Travis libvips to 8.5.8
Great work! |
FYI: Also bumped the Travis libvips to 8.5.8. |
bandjoin
/bandrank
aImage
class didn't work).