| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 5.4042 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 1 | public static function pdfYPosition($pdf, $value, $y) |
|
|
|
|||
| 47 | { |
||
| 48 | 1 | $page = 1; |
|
| 49 | 1 | if ($y > 297) { |
|
| 50 | $page = round($y / 297, 0); |
||
| 51 | $y -= ($page * 297); |
||
| 52 | $page++; |
||
| 53 | } |
||
| 54 | |||
| 55 | 1 | if ($pdf->getPage() != $page && $page <= $pdf->getNumPages()) { |
|
| 56 | $pdf->setPage($page); |
||
| 57 | } |
||
| 58 | |||
| 59 | 1 | return $y; |
|
| 60 | } |
||
| 61 | |||
| 76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.