Conditions | 1 |
Paths | 1 |
Total Lines | 41 |
Code Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function pageGenerationData() { |
||
41 | // One partial available page. |
||
42 | $one = static::ITEMS_PER_PAGE; |
||
43 | // Part of one page. |
||
44 | $partial = (int) floor($one * 0.6); |
||
45 | // More than one available page. |
||
46 | $oneplus = $one + $partial; |
||
47 | // Exactly two pages. |
||
48 | $two = (int) ($one * 2); |
||
49 | $twoplus = $two + $partial; |
||
50 | |||
51 | $expectations = [ |
||
52 | // @codingStandardsIgnoreStart |
||
53 | // page, count, result |
||
54 | [-1, 0, 0], |
||
55 | [-1, $partial, 0], |
||
56 | [-1, $one, 0], |
||
57 | [-1, $oneplus, 0], |
||
58 | [-1, $two, 0], |
||
59 | |||
60 | [ 0, 0, 0], |
||
61 | [ 0, $partial, 0], |
||
62 | [ 0, $one, 0], |
||
63 | [ 0, $oneplus, 0], |
||
64 | [ 0, $two, 0], |
||
65 | |||
66 | [ 1, 0, 0], |
||
67 | [ 1, $partial, 0], |
||
68 | [ 1, $one, 0], |
||
69 | [ 1, $oneplus, 1], |
||
70 | [ 1, $two, 1], |
||
71 | |||
72 | [ 2, 0, 0], |
||
73 | [ 2, $partial, 0], |
||
74 | [ 2, $one, 0], |
||
75 | [ 2, $oneplus, 1], |
||
76 | [ 2, $two, 1], |
||
77 | [ 2, $twoplus, 2], |
||
78 | // @codingStandardsIgnoreEnd |
||
79 | ]; |
||
80 | return $expectations; |
||
81 | } |
||
84 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths