Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel2007.php 3 locations

@@ 2140-2143 (lines=4) @@
2137
            if (strpos($item[1], 'px') !== false) {
2138
                $item[1] = str_replace('px', '', $item[1]);
2139
            }
2140
            if (strpos($item[1], 'pt') !== false) {
2141
                $item[1] = str_replace('pt', '', $item[1]);
2142
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2143
            }
2144
            if (strpos($item[1], 'in') !== false) {
2145
                $item[1] = str_replace('in', '', $item[1]);
2146
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
@@ 2144-2147 (lines=4) @@
2141
                $item[1] = str_replace('pt', '', $item[1]);
2142
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2143
            }
2144
            if (strpos($item[1], 'in') !== false) {
2145
                $item[1] = str_replace('in', '', $item[1]);
2146
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2147
            }
2148
            if (strpos($item[1], 'cm') !== false) {
2149
                $item[1] = str_replace('cm', '', $item[1]);
2150
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
@@ 2148-2151 (lines=4) @@
2145
                $item[1] = str_replace('in', '', $item[1]);
2146
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2147
            }
2148
            if (strpos($item[1], 'cm') !== false) {
2149
                $item[1] = str_replace('cm', '', $item[1]);
2150
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
2151
            }
2152
2153
            $style[$item[0]] = $item[1];
2154
        }