Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Xlsx.php 3 locations

@@ 2128-2131 (lines=4) @@
2125
            if (strpos($item[1], 'px') !== false) {
2126
                $item[1] = str_replace('px', '', $item[1]);
2127
            }
2128
            if (strpos($item[1], 'pt') !== false) {
2129
                $item[1] = str_replace('pt', '', $item[1]);
2130
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2131
            }
2132
            if (strpos($item[1], 'in') !== false) {
2133
                $item[1] = str_replace('in', '', $item[1]);
2134
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
@@ 2132-2135 (lines=4) @@
2129
                $item[1] = str_replace('pt', '', $item[1]);
2130
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::fontSizeToPixels($item[1]);
2131
            }
2132
            if (strpos($item[1], 'in') !== false) {
2133
                $item[1] = str_replace('in', '', $item[1]);
2134
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2135
            }
2136
            if (strpos($item[1], 'cm') !== false) {
2137
                $item[1] = str_replace('cm', '', $item[1]);
2138
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
@@ 2136-2139 (lines=4) @@
2133
                $item[1] = str_replace('in', '', $item[1]);
2134
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::inchSizeToPixels($item[1]);
2135
            }
2136
            if (strpos($item[1], 'cm') !== false) {
2137
                $item[1] = str_replace('cm', '', $item[1]);
2138
                $item[1] = \PhpOffice\PhpSpreadsheet\Shared\Font::centimeterSizeToPixels($item[1]);
2139
            }
2140
2141
            $style[$item[0]] = $item[1];
2142
        }