Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 1 | public function __invoke(array $bitmap1, array $bitmap2, $width, $height, callable $method) |
|
19 | { |
||
20 | 1 | $new = []; |
|
21 | |||
22 | 1 | for ($y = 0; $y < $height; $y++) { |
|
23 | 1 | $new[$y] = []; |
|
24 | |||
25 | 1 | for ($x = 0; $x < $width; $x++) { |
|
26 | 1 | $new[$y][$x] = $method( |
|
27 | 1 | $bitmap1[$y][$x], |
|
28 | 1 | $bitmap2[$y][$x] |
|
29 | 1 | ); |
|
30 | 1 | } |
|
31 | 1 | } |
|
32 | |||
33 | 1 | return $new; |
|
34 | } |
||
35 | } |
||
36 |