Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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