update fix deadcode, security
This commit is contained in:
@@ -12,16 +12,6 @@ class DnsRecordRepository extends BaseRepository implements DnsRecordRepositoryI
|
||||
return DnsRecord::class;
|
||||
}
|
||||
|
||||
public function findWithRelations(int $id, array $relationships = [])
|
||||
{
|
||||
return $this->model->with($relationships)->find($id);
|
||||
}
|
||||
|
||||
public function findWhereIn(string $key, array $value = [], array $relationships = [])
|
||||
{
|
||||
return $this->model->with($relationships)->whereIn($key, $value)->get();
|
||||
}
|
||||
|
||||
public function filter(array $data = [], array $relationships = [], string $order = 'id', array $select = ['*'])
|
||||
{
|
||||
$model = $this->model;
|
||||
|
||||
@@ -7,8 +7,4 @@ use App\Repositories\BaseRepositoryInterface;
|
||||
interface DnsRecordRepositoryInterface extends BaseRepositoryInterface
|
||||
{
|
||||
public function filter(array $data = [], array $relationships = [], string $order = 'id', array $select = ['*']);
|
||||
|
||||
public function findWithRelations(int $id, array $relationships = []);
|
||||
|
||||
public function findWhereIn(string $key, array $value = [], array $relationships = []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user