Code Duplication    Length = 3-3 lines in 6 locations

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

@@ 503-505 (lines=3) @@
500
            if (isset($chartDetail->dLbls->howLegendKey)) {
501
                $plotAttributes['showLegendKey'] = self::getAttribute($chartDetail->dLbls->showLegendKey, 'val', 'string');
502
            }
503
            if (isset($chartDetail->dLbls->showVal)) {
504
                $plotAttributes['showVal'] = self::getAttribute($chartDetail->dLbls->showVal, 'val', 'string');
505
            }
506
            if (isset($chartDetail->dLbls->showCatName)) {
507
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
508
            }
@@ 506-508 (lines=3) @@
503
            if (isset($chartDetail->dLbls->showVal)) {
504
                $plotAttributes['showVal'] = self::getAttribute($chartDetail->dLbls->showVal, 'val', 'string');
505
            }
506
            if (isset($chartDetail->dLbls->showCatName)) {
507
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
508
            }
509
            if (isset($chartDetail->dLbls->showSerName)) {
510
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
511
            }
@@ 509-511 (lines=3) @@
506
            if (isset($chartDetail->dLbls->showCatName)) {
507
                $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string');
508
            }
509
            if (isset($chartDetail->dLbls->showSerName)) {
510
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
511
            }
512
            if (isset($chartDetail->dLbls->showPercent)) {
513
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
514
            }
@@ 512-514 (lines=3) @@
509
            if (isset($chartDetail->dLbls->showSerName)) {
510
                $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string');
511
            }
512
            if (isset($chartDetail->dLbls->showPercent)) {
513
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
514
            }
515
            if (isset($chartDetail->dLbls->showBubbleSize)) {
516
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
517
            }
@@ 515-517 (lines=3) @@
512
            if (isset($chartDetail->dLbls->showPercent)) {
513
                $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string');
514
            }
515
            if (isset($chartDetail->dLbls->showBubbleSize)) {
516
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
517
            }
518
            if (isset($chartDetail->dLbls->showLeaderLines)) {
519
                $plotAttributes['showLeaderLines'] = self::getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string');
520
            }
@@ 518-520 (lines=3) @@
515
            if (isset($chartDetail->dLbls->showBubbleSize)) {
516
                $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string');
517
            }
518
            if (isset($chartDetail->dLbls->showLeaderLines)) {
519
                $plotAttributes['showLeaderLines'] = self::getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string');
520
            }
521
        }
522
523
        return $plotAttributes;