Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

@@ 1985-1991 (lines=7) @@
1982
1983
        // protection
1984
        if (isset($style->protection)) {
1985
            if (isset($style->protection['locked'])) {
1986
                if (self::boolean((string) $style->protection['locked'])) {
1987
                    $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED);
1988
                } else {
1989
                    $docStyle->getProtection()->setLocked(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED);
1990
                }
1991
            }
1992
1993
            if (isset($style->protection['hidden'])) {
1994
                if (self::boolean((string) $style->protection['hidden'])) {
@@ 1993-1999 (lines=7) @@
1990
                }
1991
            }
1992
1993
            if (isset($style->protection['hidden'])) {
1994
                if (self::boolean((string) $style->protection['hidden'])) {
1995
                    $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED);
1996
                } else {
1997
                    $docStyle->getProtection()->setHidden(\PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED);
1998
                }
1999
            }
2000
        }
2001
2002
        // top-level style settings