Code Duplication    Length = 11-11 lines in 2 locations

src/Model/EloquentModel.php 1 location

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

src/Entry/EntryModel.php 1 location

@@ 794-804 (lines=11) @@
791
     *
792
     * @return \Illuminate\Database\Eloquent\Builder
793
     */
794
    public function newQuery()
795
    {
796
        $builder = new EntryQueryBuilder($this->newBaseQueryBuilder());
797
798
        // Once we have the query builders, we will set the model instances so the
799
        // builder can easily access any information it may need from the model
800
        // while it is constructing and executing various queries against it.
801
        $builder->setModel($this)->with($this->with);
802
803
        return $this->applyGlobalScopes($builder);
804
    }
805
806
    /**
807
     * Get the criteria class.