Code Duplication    Length = 4-4 lines in 3 locations

src/PhpSpreadsheet/Reader/Excel2007.php 3 locations

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