Code Duplication    Length = 7-7 lines in 2 locations

src/PhpSpreadsheet/Writer/Excel5/Parser.php 2 locations

@@ 1443-1449 (lines=7) @@
1440
            $tree = $this->parseTree;
1441
        }
1442
1443
        if (is_array($tree['left'])) {
1444
            $converted_tree = $this->toReversePolish($tree['left']);
1445
            $polish .= $converted_tree;
1446
        } elseif ($tree['left'] != '') { // It's a final node
1447
            $converted_tree = $this->convert($tree['left']);
1448
            $polish .= $converted_tree;
1449
        }
1450
        if (is_array($tree['right'])) {
1451
            $converted_tree = $this->toReversePolish($tree['right']);
1452
            $polish .= $converted_tree;
@@ 1450-1456 (lines=7) @@
1447
            $converted_tree = $this->convert($tree['left']);
1448
            $polish .= $converted_tree;
1449
        }
1450
        if (is_array($tree['right'])) {
1451
            $converted_tree = $this->toReversePolish($tree['right']);
1452
            $polish .= $converted_tree;
1453
        } elseif ($tree['right'] != '') { // It's a final node
1454
            $converted_tree = $this->convert($tree['right']);
1455
            $polish .= $converted_tree;
1456
        }
1457
        // if it's a function convert it here (so we can set it's arguments)
1458
        if (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/", $tree['value']) and
1459
            !preg_match('/^([A-Ia-i]?[A-Za-z])(\d+)$/', $tree['value']) and