Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1995-2001 (lines=7) @@
1992
1993
        // protection
1994
        if (isset($style->protection)) {
1995
            if (isset($style->protection['locked'])) {
1996
                if (self::boolean((string) $style->protection['locked'])) {
1997
                    $docStyle->getProtection()->setLocked(Style\Protection::PROTECTION_PROTECTED);
1998
                } else {
1999
                    $docStyle->getProtection()->setLocked(Style\Protection::PROTECTION_UNPROTECTED);
2000
                }
2001
            }
2002
2003
            if (isset($style->protection['hidden'])) {
2004
                if (self::boolean((string) $style->protection['hidden'])) {
@@ 2003-2009 (lines=7) @@
2000
                }
2001
            }
2002
2003
            if (isset($style->protection['hidden'])) {
2004
                if (self::boolean((string) $style->protection['hidden'])) {
2005
                    $docStyle->getProtection()->setHidden(Style\Protection::PROTECTION_PROTECTED);
2006
                } else {
2007
                    $docStyle->getProtection()->setHidden(Style\Protection::PROTECTION_UNPROTECTED);
2008
                }
2009
            }
2010
        }
2011
2012
        // top-level style settings