Code Duplication    Length = 11-11 lines in 2 locations

src/Model/EloquentModel.php 1 location

@@ 264-274 (lines=11) @@
261
     *
262
     * @return \Illuminate\Database\Eloquent\Builder
263
     */
264
    public function newQuery()
265
    {
266
        $builder = new EloquentQueryBuilder($this->newBaseQueryBuilder());
267
268
        // Once we have the query builders, we will set the model instances so the
269
        // builder can easily access any information it may need from the model
270
        // while it is constructing and executing various queries against it.
271
        $builder->setModel($this)->with($this->with);
272
273
        return $this->applyGlobalScopes($builder);
274
    }
275
276
    /*
277
     * Alias for getTranslation()

src/Entry/EntryModel.php 1 location

@@ 722-732 (lines=11) @@
719
     *
720
     * @return \Illuminate\Database\Eloquent\Builder
721
     */
722
    public function newQuery()
723
    {
724
        $builder = new EntryQueryBuilder($this->newBaseQueryBuilder());
725
726
        // Once we have the query builders, we will set the model instances so the
727
        // builder can easily access any information it may need from the model
728
        // while it is constructing and executing various queries against it.
729
        $builder->setModel($this)->with($this->with);
730
731
        return $this->applyGlobalScopes($builder);
732
    }
733
734
    /**
735
     * Override the __get method.