Code Duplication    Length = 16-17 lines in 2 locations

src/ZfcDatagrid/Renderer/TCPDF/Renderer.php 2 locations

@@ 434-450 (lines=17) @@
431
        ];
432
    }
433
434
    protected function setFontHeader()
435
    {
436
        $optionsRenderer = $this->getOptionsRenderer();
437
        $style = $optionsRenderer['style']['header'];
438
439
        $font = $style['font'];
440
        $size = $style['size'];
441
        $color = $style['color'];
442
        $background = $style['background-color'];
443
444
        $pdf = $this->getPdf();
445
        $pdf->SetFont($font, '', $size);
446
        $pdf->SetTextColor($color[0], $color[1], $color[2]);
447
        $pdf->SetFillColor($background[0], $background[1], $background[2]);
448
        // "BOLD" fake
449
        $pdf->setTextRenderingMode(0.15, true, false);
450
    }
451
452
    protected function setFontData()
453
    {
@@ 452-467 (lines=16) @@
449
        $pdf->setTextRenderingMode(0.15, true, false);
450
    }
451
452
    protected function setFontData()
453
    {
454
        $optionsRenderer = $this->getOptionsRenderer();
455
        $style = $optionsRenderer['style']['data'];
456
457
        $font = $style['font'];
458
        $size = $style['size'];
459
        $color = $style['color'];
460
        $background = $style['background-color'];
461
462
        $pdf = $this->getPdf();
463
        $pdf->SetFont($font, '', $size);
464
        $pdf->SetTextColor($color[0], $color[1], $color[2]);
465
        $pdf->SetFillColor($background[0], $background[1], $background[2]);
466
        $pdf->setTextRenderingMode();
467
    }
468
469
    protected function setBold()
470
    {