Code Duplication    Length = 14-16 lines in 2 locations

src/POData/UriProcessor/QueryProcessor/FunctionDescription.php 2 locations

@@ 514-529 (lines=16) @@
511
     *
512
     * @return IType
513
     */
514
    public static function verifyAndPromoteArithmeticOpArguments(
515
        $expressionToken,
516
        $leftArgument,
517
        $rightArgument
518
    ) {
519
        $function
520
            = self::findFunctionWithPromotion(
521
                self::arithmeticOperationFunctions(),
522
                array($leftArgument, $rightArgument)
523
            );
524
        if ($function == null) {
525
            self::incompatibleError(
526
                $expressionToken,
527
                array($leftArgument, $rightArgument)
528
            );
529
        }
530
531
        return $function->returnType;
532
    }
@@ 543-556 (lines=14) @@
540
     *
541
     * @throws ODataException
542
     */
543
    public static function verifyLogicalOpArguments(
544
        $expressionToken,
545
        $leftArgument,
546
        $rightArgument
547
    ) {
548
        $function = self::findFunctionWithPromotion(
549
            self::logicalOperationFunctions(),
550
            array($leftArgument, $rightArgument),
551
            false
552
        );
553
        if ($function == null) {
554
            self::incompatibleError(
555
                $expressionToken,
556
                array($leftArgument, $rightArgument)
557
            );
558
        }
559
    }