Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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