Aerendir/bundle-features

View on GitHub
src/InvoiceDrawer/PlainTextDrawer.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method buildInvoiceTextTable has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function buildInvoiceTextTable(InvoiceSection $section): string
    {
        $tableData = [
            [
                'quantity'    => \mb_strtoupper($this->getTranslator()->trans('shq_features.invoice.quantity.label', [], 'Invoice')),
Severity: Minor
Found in src/InvoiceDrawer/PlainTextDrawer.php - About 1 hr to fix

    Method draw has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function draw(InvoiceInterface $invoice): array
        {
            $detailsTables = [];
            foreach ($invoice->getSections() as $sectionId => $section) {
                $detailsTables[$sectionId] = $this->buildInvoiceTextTable($section);
    Severity: Minor
    Found in src/InvoiceDrawer/PlainTextDrawer.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status