Code Duplication    Length = 3-3 lines in 2 locations

src/CacheKey.php 2 locations

@@ 111-113 (lines=3) @@
108
109
    protected function getNestedClauses(array $where) : string
110
    {
111
        if (! in_array($where['type'], ['Exists', 'Nested', 'NotExists'])) {
112
            return '';
113
        }
114
115
        return '_' . strtolower($where['type']) . $this->getWhereClauses($where['query']->wheres);
116
    }
@@ 138-140 (lines=3) @@
135
136
    protected function getOtherClauses(array $where, string $carry = null) : string
137
    {
138
        if (in_array($where['type'], ['Exists', 'Nested', 'NotExists', 'raw', 'Column'])) {
139
            return '';
140
        }
141
142
        $value = array_get($where, 'value');
143
        $value .= $this->getTypeClause($where);