Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Xls.php 2 locations

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