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