Code Duplication    Length = 8-8 lines in 3 locations

src/PhpSpreadsheet/Chart/Renderer/JpGraph.php 3 locations

@@ 563-570 (lines=8) @@
560
        $this->graph->Add($seriesPlot);
561
    }
562
563
    private function renderAreaChart($groupCount, $dimensions = '2d')
564
    {
565
        $this->renderCartesianPlotArea();
566
567
        for ($i = 0; $i < $groupCount; ++$i) {
568
            $this->renderPlotLine($i, true, false, $dimensions);
569
        }
570
    }
571
572
    private function renderLineChart($groupCount, $dimensions = '2d')
573
    {
@@ 572-579 (lines=8) @@
569
        }
570
    }
571
572
    private function renderLineChart($groupCount, $dimensions = '2d')
573
    {
574
        $this->renderCartesianPlotArea();
575
576
        for ($i = 0; $i < $groupCount; ++$i) {
577
            $this->renderPlotLine($i, false, false, $dimensions);
578
        }
579
    }
580
581
    private function renderBarChart($groupCount, $dimensions = '2d')
582
    {
@@ 581-588 (lines=8) @@
578
        }
579
    }
580
581
    private function renderBarChart($groupCount, $dimensions = '2d')
582
    {
583
        $this->renderCartesianPlotArea();
584
585
        for ($i = 0; $i < $groupCount; ++$i) {
586
            $this->renderPlotBar($i, $dimensions);
587
        }
588
    }
589
590
    private function renderScatterChart($groupCount)
591
    {