src/InvoiceDrawer/PlainTextDrawer.php
Method buildInvoiceTextTable
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function buildInvoiceTextTable(InvoiceSection $section): string
{
$tableData = [
[
'quantity' => \mb_strtoupper($this->getTranslator()->trans('shq_features.invoice.quantity.label', [], 'Invoice')),
Method draw
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function draw(InvoiceInterface $invoice): array
{
$detailsTables = [];
foreach ($invoice->getSections() as $sectionId => $section) {
$detailsTables[$sectionId] = $this->buildInvoiceTextTable($section);