Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

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