| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function run(ReportBuilder &$context) |
||
| 30 | { |
||
| 31 | $nav = $context->nav(); |
||
| 32 | $meta = $context->meta(); |
||
| 33 | |||
| 34 | $nav |
||
| 35 | ->reset('initial') |
||
| 36 | ->left(); |
||
| 37 | |||
| 38 | foreach ($meta->getDataSet() as $key => $options) { |
||
| 39 | $context->write($key); |
||
| 40 | $context->style('bg', (string) $nav); |
||
| 41 | |||
| 42 | $nav->axisXMove(); |
||
| 43 | } |
||
| 44 | |||
| 45 | // Draw the edge line |
||
| 46 | $start = $nav->coord('current', 'initial'); |
||
| 47 | $end = $nav->coord('current', ($nav->row() - 1)); |
||
| 48 | $coordString = $start.':'.$end; |
||
| 49 | |||
| 50 | $context->style('border', $coordString, ['edge' => 'right']); |
||
| 51 | $context->style('align', $coordString, ['edge' => 'right']); |
||
| 52 | |||
| 53 | $nav->reset('set'); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |