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

@@ 133-135 (lines=3) @@
130
    {
131
        list($target, $column) = $this->parseMappedColumn($mapping);
132
133
        if (in_array($method, ['pluck', 'value', 'aggregate', 'orderBy', 'lists'])) {
134
            return $this->mappedJoinQuery($query, $method, $args, $target, $column);
135
        }
136
137
        return $this->mappedHasQuery($query, $method, $args, $target, $column);
138
    }