Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 5303-5305 (lines=3) @@
5300
                    if ($token['data']['function'] != '') {
5301
                        // normal function
5302
                        $ops = []; // array of operators
5303
                        for ($i = 0; $i < $token['data']['args']; ++$i) {
5304
                            $ops[] = array_pop($formulaStrings);
5305
                        }
5306
                        $ops = array_reverse($ops);
5307
                        $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')';
5308
                        unset($space0, $space1);
@@ 5312-5314 (lines=3) @@
5309
                    } else {
5310
                        // add-in function
5311
                        $ops = []; // array of operators
5312
                        for ($i = 0; $i < $token['data']['args'] - 1; ++$i) {
5313
                            $ops[] = array_pop($formulaStrings);
5314
                        }
5315
                        $ops = array_reverse($ops);
5316
                        $function = array_pop($formulaStrings);
5317
                        $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')';