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

@@ 274-284 (lines=11) @@
271
        return $this->loadIntoExisting($pFilename, $spreadsheet);
272
    }
273
274
    private static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
275
    {
276
        $styleAttributeValue = strtolower($styleAttributeValue);
277
        foreach ($styleList as $style) {
278
            if ($styleAttributeValue == strtolower($style)) {
279
                $styleAttributeValue = $style;
280
281
                return true;
282
            }
283
        }
284
285
        return false;
286
    }
287