Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 2013-2019 (lines=7) @@
2010
2011
        // protection
2012
        if (isset($style->protection)) {
2013
            if (isset($style->protection['locked'])) {
2014
                if (self::boolean((string) $style->protection['locked'])) {
2015
                    $docStyle->getProtection()->setLocked(Style\Protection::PROTECTION_PROTECTED);
2016
                } else {
2017
                    $docStyle->getProtection()->setLocked(Style\Protection::PROTECTION_UNPROTECTED);
2018
                }
2019
            }
2020
2021
            if (isset($style->protection['hidden'])) {
2022
                if (self::boolean((string) $style->protection['hidden'])) {
@@ 2021-2027 (lines=7) @@
2018
                }
2019
            }
2020
2021
            if (isset($style->protection['hidden'])) {
2022
                if (self::boolean((string) $style->protection['hidden'])) {
2023
                    $docStyle->getProtection()->setHidden(Style\Protection::PROTECTION_PROTECTED);
2024
                } else {
2025
                    $docStyle->getProtection()->setHidden(Style\Protection::PROTECTION_UNPROTECTED);
2026
                }
2027
            }
2028
        }
2029
2030
        // top-level style settings