Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Calculation/FormulaParser.php 2 locations

@@ 384-392 (lines=9) @@
381
            }
382
383
            // standard infix operators
384
            if (strpos(self::OPERATORS_INFIX, $this->formula{$index}) !== false) {
385
                if (strlen($value) > 0) {
386
                    $tokens1[] =new FormulaToken($value, FormulaToken::TOKEN_TYPE_OPERAND);
387
                    $value = "";
388
                }
389
                $tokens1[] = new FormulaToken($this->formula{$index}, FormulaToken::TOKEN_TYPE_OPERATORINFIX);
390
                ++$index;
391
                continue;
392
            }
393
394
            // standard postfix operators (only one)
395
            if (strpos(self::OPERATORS_POSTFIX, $this->formula{$index}) !== false) {
@@ 395-403 (lines=9) @@
392
            }
393
394
            // standard postfix operators (only one)
395
            if (strpos(self::OPERATORS_POSTFIX, $this->formula{$index}) !== false) {
396
                if (strlen($value) > 0) {
397
                    $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_OPERAND);
398
                    $value = "";
399
                }
400
                $tokens1[] = new FormulaToken($this->formula{$index}, FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX);
401
                ++$index;
402
                continue;
403
            }
404
405
            // start subexpression or function
406
            if ($this->formula{$index} == self::PAREN_OPEN) {