Code Duplication    Length = 3-3 lines in 6 locations

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

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