Code Duplication    Length = 3-3 lines in 2 locations

src/Mappable.php 1 location

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

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
    }