Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel5.php 2 locations

@@ 5421-5423 (lines=3) @@
5418
                    if ($token['data']['function'] != '') {
5419
                        // normal function
5420
                        $ops = array(); // array of operators
5421
                        for ($i = 0; $i < $token['data']['args']; ++$i) {
5422
                            $ops[] = array_pop($formulaStrings);
5423
                        }
5424
                        $ops = array_reverse($ops);
5425
                        $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ")";
5426
                        unset($space0, $space1);
@@ 5430-5432 (lines=3) @@
5427
                    } else {
5428
                        // add-in function
5429
                        $ops = array(); // array of operators
5430
                        for ($i = 0; $i < $token['data']['args'] - 1; ++$i) {
5431
                            $ops[] = array_pop($formulaStrings);
5432
                        }
5433
                        $ops = array_reverse($ops);
5434
                        $function = array_pop($formulaStrings);
5435
                        $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ")";