Code Duplication    Length = 13-13 lines in 2 locations

src/PhpSpreadsheet/Reader/Ods.php 1 location

@@ 252-264 (lines=13) @@
249
        return $this->loadIntoExisting($pFilename, $spreadsheet);
250
    }
251
252
    private static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
253
    {
254
        $styleAttributeValue = strtolower($styleAttributeValue);
255
        foreach ($styleList as $style) {
256
            if ($styleAttributeValue == strtolower($style)) {
257
                $styleAttributeValue = $style;
258
259
                return true;
260
            }
261
        }
262
263
        return false;
264
    }
265
266
    /**
267
     * Loads PhpSpreadsheet from file into PhpSpreadsheet instance.

src/PhpSpreadsheet/Reader/Xml.php 1 location

@@ 239-251 (lines=13) @@
236
        return $this->loadIntoExisting($pFilename, $spreadsheet);
237
    }
238
239
    protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue)
240
    {
241
        $styleAttributeValue = strtolower($styleAttributeValue);
242
        foreach ($styleList as $style) {
243
            if ($styleAttributeValue == strtolower($style)) {
244
                $styleAttributeValue = $style;
245
246
                return true;
247
            }
248
        }
249
250
        return false;
251
    }
252
253
    /**
254
     * pixel units to excel width units(units of 1/256th of a character width).