Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel2007.php 3 locations

@@ 2187-2190 (lines=4) @@
2184
            if (strpos($item[1], 'px') !== false) {
2185
                $item[1] = str_replace('px', '', $item[1]);
2186
            }
2187
            if (strpos($item[1], 'pt') !== false) {
2188
                $item[1] = str_replace('pt', '', $item[1]);
2189
                $item[1] = \PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2190
            }
2191
            if (strpos($item[1], 'in') !== false) {
2192
                $item[1] = str_replace('in', '', $item[1]);
2193
                $item[1] = \PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
@@ 2191-2194 (lines=4) @@
2188
                $item[1] = str_replace('pt', '', $item[1]);
2189
                $item[1] = \PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2190
            }
2191
            if (strpos($item[1], 'in') !== false) {
2192
                $item[1] = str_replace('in', '', $item[1]);
2193
                $item[1] = \PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2194
            }
2195
            if (strpos($item[1], 'cm') !== false) {
2196
                $item[1] = str_replace('cm', '', $item[1]);
2197
                $item[1] = \PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
@@ 2195-2198 (lines=4) @@
2192
                $item[1] = str_replace('in', '', $item[1]);
2193
                $item[1] = \PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2194
            }
2195
            if (strpos($item[1], 'cm') !== false) {
2196
                $item[1] = str_replace('cm', '', $item[1]);
2197
                $item[1] = \PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
2198
            }
2199
2200
            $style[$item[0]] = $item[1];
2201
        }