Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

@@ 5447-5449 (lines=3) @@
5444
                    if ($token['data']['function'] != '') {
5445
                        // normal function
5446
                        $ops = []; // array of operators
5447
                        for ($i = 0; $i < $token['data']['args']; ++$i) {
5448
                            $ops[] = array_pop($formulaStrings);
5449
                        }
5450
                        $ops = array_reverse($ops);
5451
                        $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')';
5452
                        unset($space0, $space1);
@@ 5456-5458 (lines=3) @@
5453
                    } else {
5454
                        // add-in function
5455
                        $ops = []; // array of operators
5456
                        for ($i = 0; $i < $token['data']['args'] - 1; ++$i) {
5457
                            $ops[] = array_pop($formulaStrings);
5458
                        }
5459
                        $ops = array_reverse($ops);
5460
                        $function = array_pop($formulaStrings);
5461
                        $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')';