| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function __construct($datay, $datax = false) |
||
| 26 | { |
||
| 27 | parent::__construct($datay, $datax); |
||
| 28 | // Calculate line coordinates as the average of the error limits |
||
| 29 | $n = safe_count($datay); |
||
| 30 | for ($i = 0; $i < $n; $i += 2) { |
||
| 31 | $ly[] = ($datay[$i] + $datay[$i + 1]) / 2; |
||
| 32 | } |
||
| 33 | $this->line = new LinePlot($ly, $datax); |
||
|
|
|||
| 34 | } |
||
| 56 |