Code Duplication    Length = 3-3 lines in 2 locations

src/Metable.php 1 location

@@ 72-74 (lines=3) @@
69
     */
70
    protected function metaQuery(Builder $query, $method, ArgumentBag $args)
71
    {
72
        if (in_array($method, ['pluck', 'value', 'aggregate', 'orderBy', 'lists'])) {
73
            return $this->metaJoinQuery($query, $method, $args);
74
        }
75
76
        return $this->metaHasQuery($query, $method, $args);
77
    }

src/Mappable.php 1 location

@@ 138-140 (lines=3) @@
135
    {
136
        list($target, $column) = $this->parseMappedColumn($mapping);
137
138
        if (in_array($method, ['pluck', 'value', 'aggregate', 'orderBy', 'lists'])) {
139
            return $this->mappedJoinQuery($query, $method, $args, $target, $column);
140
        }
141
142
        return $this->mappedHasQuery($query, $method, $args, $target, $column);
143
    }