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