File tree 4 files changed +34
-4
lines changed
4 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 12
12
global :
13
13
- VIPS_VERSION_MAJOR=8
14
14
- VIPS_VERSION_MINOR=5
15
- - VIPS_VERSION_MICRO=3
15
+ - VIPS_VERSION_MICRO=8
16
16
- PATH=$HOME/vips/bin:$PATH
17
17
- LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
18
18
- PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
Original file line number Diff line number Diff line change 46
46
"test" : [
47
47
" parallel-lint . --exclude vendor" ,
48
48
" phpunit" ,
49
- " phpcs -np -- standard=PSR2 --extensions=php --ignore=/vendor/ ."
49
+ " phpcs -- standard=phpcs-ruleset.xml ."
50
50
]
51
51
}
52
52
}
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ public function testVipsRelational()
130
130
$ this ->assertEquals ($ vips , $ real );
131
131
132
132
$ 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 ;
135
135
});
136
136
$ vips = $ this ->image ->more ($ this ->image )->getpoint (0 , 0 );
137
137
$ this ->assertEquals ($ vips , $ real );
You can’t perform that action at this time.
0 commit comments