Code Duplication    Length = 3-3 lines in 6 locations

src/PhpSpreadsheet/Reader/Xlsx/Chart.php 6 locations

@@ 470-472 (lines=3) @@
467
            if (isset($chartDetail->dLbls->howLegendKey)) {
468
                $plotAttributes['showLegendKey'] = self::getAttribute($chartDetail->dLbls->showLegendKey, 'val', 'string');
469
            }
470
            if (isset($chartDetail->dLbls->showVal)) {
471
                $plotAttributes['showVal'] = self::getAttribute($chartDetail->dLbls->showVal, 'val', 'string');
472
            }
473
            if (isset($chartDetail->dLbls->showCatName)) {
474
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
475
            }
@@ 473-475 (lines=3) @@
470
            if (isset($chartDetail->dLbls->showVal)) {
471
                $plotAttributes['showVal'] = self::getAttribute($chartDetail->dLbls->showVal, 'val', 'string');
472
            }
473
            if (isset($chartDetail->dLbls->showCatName)) {
474
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
475
            }
476
            if (isset($chartDetail->dLbls->showSerName)) {
477
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
478
            }
@@ 476-478 (lines=3) @@
473
            if (isset($chartDetail->dLbls->showCatName)) {
474
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
475
            }
476
            if (isset($chartDetail->dLbls->showSerName)) {
477
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
478
            }
479
            if (isset($chartDetail->dLbls->showPercent)) {
480
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
481
            }
@@ 479-481 (lines=3) @@
476
            if (isset($chartDetail->dLbls->showSerName)) {
477
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
478
            }
479
            if (isset($chartDetail->dLbls->showPercent)) {
480
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
481
            }
482
            if (isset($chartDetail->dLbls->showBubbleSize)) {
483
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
484
            }
@@ 482-484 (lines=3) @@
479
            if (isset($chartDetail->dLbls->showPercent)) {
480
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
481
            }
482
            if (isset($chartDetail->dLbls->showBubbleSize)) {
483
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
484
            }
485
            if (isset($chartDetail->dLbls->showLeaderLines)) {
486
                $plotAttributes['showLeaderLines'] = self::getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string');
487
            }
@@ 485-487 (lines=3) @@
482
            if (isset($chartDetail->dLbls->showBubbleSize)) {
483
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
484
            }
485
            if (isset($chartDetail->dLbls->showLeaderLines)) {
486
                $plotAttributes['showLeaderLines'] = self::getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string');
487
            }
488
        }
489
490
        return $plotAttributes;