Code Duplication    Length = 11-11 lines in 2 locations

src/QueryBuilder/Parenthesis.php 2 locations

@@ 86-96 (lines=11) @@
83
    }
84
85
    /** {@inheritdoc} */
86
    public function andParenthesis()
87
    {
88
        return new Parenthesis(
89
            function (ParenthesisInterface $parenthesis) {
90
                $this->where[] = (!empty($this->where) ? 'AND ' : '') . $parenthesis->getExpression();
91
92
                return $this;
93
            },
94
            $this
95
        );
96
    }
97
98
    /** {@inheritdoc} */
99
    public function orParenthesis()
@@ 99-109 (lines=11) @@
96
    }
97
98
    /** {@inheritdoc} */
99
    public function orParenthesis()
100
    {
101
        return new Parenthesis(
102
            function (ParenthesisInterface $parenthesis) {
103
                $this->where[] = (!empty($this->where) ? 'OR ' : '') . $parenthesis->getExpression();
104
105
                return $this;
106
            },
107
            $this
108
        );
109
    }
110
111
    /** {@inheritdoc} */
112
    public function close()