Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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