| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 1 | public function Stroke($aImg, $aX1, $aY1, $aX2, $aY2) |
|
| 48 | { |
||
| 49 | 1 | if ($this->iShow) { |
|
| 50 | 1 | $aImg->PushColor($this->iColor); |
|
| 51 | 1 | $oldls = $aImg->line_style; |
|
| 52 | 1 | $oldlw = $aImg->line_weight; |
|
| 53 | 1 | $aImg->SetLineWeight($this->iWeight); |
|
| 54 | 1 | $aImg->SetLineStyle($this->iStyle); |
|
| 55 | 1 | $aImg->StyleLine($aX1, $aY1, $aX2, $aY2); |
|
| 56 | 1 | $aImg->PopColor($this->iColor); |
|
| 57 | 1 | $aImg->line_style = $oldls; |
|
| 58 | 1 | $aImg->line_weight = $oldlw; |
|
| 59 | } |
||
| 62 |