| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 137 | public function generateBarcodeImage() |
||
| 138 | { |
||
| 139 | $barcode = new DNS1D(); |
||
| 140 | $barcode->setStorPath(__DIR__ . '/cache/'); |
||
| 141 | $image = 'data:image/png;base64,' . $barcode->getBarcodePNG($this->getCode(), $this->getType(), (int) $this->getSize(), (int) $this->getHeight()); |
||
|
|
|||
| 142 | $this->getStyle()->setContent("background-image: url($image)"); |
||
| 143 | return $this; |
||
| 144 | } |
||
| 146 |