Code Duplication    Length = 11-11 lines in 2 locations

src/PhpSpreadsheet/Reader/Xml.php 1 location

@@ 233-243 (lines=11) @@
230
        return $this->loadIntoExisting($pFilename, $spreadsheet);
231
    }
232
233
    protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
234
    {
235
        $styleAttributeValue = strtolower($styleAttributeValue);
236
        foreach ($styleList as $style) {
237
            if ($styleAttributeValue == strtolower($style)) {
238
                $styleAttributeValue = $style;
239
240
                return true;
241
            }
242
        }
243
244
        return false;
245
    }
246

src/PhpSpreadsheet/Reader/Ods.php 1 location

@@ 266-276 (lines=11) @@
263
        return $this->loadIntoExisting($pFilename, $spreadsheet);
264
    }
265
266
    private static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
267
    {
268
        $styleAttributeValue = strtolower($styleAttributeValue);
269
        foreach ($styleList as $style) {
270
            if ($styleAttributeValue == strtolower($style)) {
271
                $styleAttributeValue = $style;
272
273
                return true;
274
            }
275
        }
276
277
        return false;
278
    }
279