Skip to content

Commit a9acb85

Browse files
committed
Incorporate review
+ bump Travis libvips to 8.5.8
1 parent c4700d8 commit a9acb85

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
global:
1313
- VIPS_VERSION_MAJOR=8
1414
- VIPS_VERSION_MINOR=5
15-
- VIPS_VERSION_MICRO=3
15+
- VIPS_VERSION_MICRO=8
1616
- PATH=$HOME/vips/bin:$PATH
1717
- LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
1818
- PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test": [
4747
"parallel-lint . --exclude vendor",
4848
"phpunit",
49-
"phpcs -np --standard=PSR2 --extensions=php --ignore=/vendor/ ."
49+
"phpcs --standard=phpcs-ruleset.xml ."
5050
]
5151
}
5252
}

phpcs-ruleset.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="php-vips">
3+
<!-- Set a description for this ruleset -->
4+
<description>php-vips coding standard. Inherits from PSR-2.</description>
5+
6+
<!-- Check all files in this directory and the directories below it -->
7+
<file>.</file>
8+
9+
<!-- Ignore Composer dependencies -->
10+
<exclude-pattern>vendor/</exclude-pattern>
11+
12+
<!-- Display progress -->
13+
<arg value="p"/>
14+
15+
<!-- Only check PHP files -->
16+
<arg name="extensions" value="php"/>
17+
18+
<!-- Include the whole PSR-2 standard -->
19+
<rule ref="PSR2"/>
20+
21+
<!-- Exclude this rule for code examples -->
22+
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
23+
<exclude-pattern>examples/</exclude-pattern>
24+
</rule>
25+
26+
<!-- File is generated automatically -->
27+
<rule ref="Generic.Files.LineLength">
28+
<exclude-pattern>src/ImageAutodoc.php</exclude-pattern>
29+
</rule>
30+
</ruleset>

tests/ShortcutTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function testVipsRelational()
130130
$this->assertEquals($vips, $real);
131131

132132
$real = self::mapNumeric($this->pixel, function ($value) {
133-
// FIXME: Left and right operands are identical
134-
return $value > $value ? 255 : 0;
133+
// $value > $value is always false
134+
return 0;
135135
});
136136
$vips = $this->image->more($this->image)->getpoint(0, 0);
137137
$this->assertEquals($vips, $real);

0 commit comments

Comments
 (0)