| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function run(ReportBuilder &$context, $coordString, $options) |
||
| 35 | { |
||
| 36 | if (!isset($options['edge'])) { |
||
| 37 | throw new \InvalidArgumentException('Must set edge to use in options array'); |
||
| 38 | } |
||
| 39 | |||
| 40 | if (!isset($options['thickness'])) { |
||
| 41 | $options['thickness'] = $options['default_line_thickness']; |
||
| 42 | } |
||
| 43 | $context->sheet() |
||
| 44 | ->getStyle($coordString) |
||
| 45 | ->applyFromArray( |
||
| 46 | ['borders' => [ |
||
| 47 | $options['edge'] => [ |
||
| 48 | 'style' => $options['thickness']]]] |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |