Code Duplication    Length = 8-8 lines in 3 locations

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

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