Code Duplication    Length = 8-8 lines in 2 locations

vendor/cakephp/cakephp/src/Database/Query.php 2 locations

@@ 784-791 (lines=8) @@
781
     * @see \Cake\Database\Expression\QueryExpression
782
     * @return $this
783
     */
784
    public function where($conditions = null, $types = [], $overwrite = false)
785
    {
786
        if ($overwrite) {
787
            $this->_parts['where'] = $this->newExpr();
788
        }
789
        $this->_conjugate('where', $conditions, 'AND', $types);
790
        return $this;
791
    }
792
793
    /**
794
     * Connects any previously defined set of conditions to the provided list
@@ 1082-1089 (lines=8) @@
1079
     * @see \Cake\Database\Query::where()
1080
     * @return $this
1081
     */
1082
    public function having($conditions = null, $types = [], $overwrite = false)
1083
    {
1084
        if ($overwrite) {
1085
            $this->_parts['having'] = $this->newExpr();
1086
        }
1087
        $this->_conjugate('having', $conditions, 'AND', $types);
1088
        return $this;
1089
    }
1090
1091
    /**
1092
     * Connects any previously defined set of conditions to the provided list