Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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