Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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