Code Duplication    Length = 11-11 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2003XML.php 1 location

@@ 223-233 (lines=11) @@
220
        return $this->loadIntoExisting($pFilename, $spreadsheet);
221
    }
222
223
    protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
224
    {
225
        $styleAttributeValue = strtolower($styleAttributeValue);
226
        foreach ($styleList as $style) {
227
            if ($styleAttributeValue == strtolower($style)) {
228
                $styleAttributeValue = $style;
229
230
                return true;
231
            }
232
        }
233
234
        return false;
235
    }
236

src/PhpSpreadsheet/Reader/Ods.php 1 location

@@ 255-265 (lines=11) @@
252
        return $this->loadIntoExisting($pFilename, $spreadsheet);
253
    }
254
255
    private static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
256
    {
257
        $styleAttributeValue = strtolower($styleAttributeValue);
258
        foreach ($styleList as $style) {
259
            if ($styleAttributeValue == strtolower($style)) {
260
                $styleAttributeValue = $style;
261
262
                return true;
263
            }
264
        }
265
266
        return false;
267
    }
268