Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 5337-5339 (lines=3) @@
5334
                    if ($token['data']['function'] != '') {
5335
                        // normal function
5336
                        $ops = []; // array of operators
5337
                        for ($i = 0; $i < $token['data']['args']; ++$i) {
5338
                            $ops[] = array_pop($formulaStrings);
5339
                        }
5340
                        $ops = array_reverse($ops);
5341
                        $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')';
5342
                        unset($space0, $space1);
@@ 5346-5348 (lines=3) @@
5343
                    } else {
5344
                        // add-in function
5345
                        $ops = []; // array of operators
5346
                        for ($i = 0; $i < $token['data']['args'] - 1; ++$i) {
5347
                            $ops[] = array_pop($formulaStrings);
5348
                        }
5349
                        $ops = array_reverse($ops);
5350
                        $function = array_pop($formulaStrings);
5351
                        $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')';