update fix deadcode, security
This commit is contained in:
@@ -139,13 +139,6 @@ class OrderRepository extends BaseRepository implements OrderRepositoryInterface
|
||||
|
||||
return $model->find($id);
|
||||
}
|
||||
public function updateBy(string $key = '', string|int $value = '', array $data = [])
|
||||
{
|
||||
if (empty($key) || empty($value)) {
|
||||
return false;
|
||||
}
|
||||
return $this->model->where($key, $value)->update($data);
|
||||
}
|
||||
|
||||
public function findByOrderNum(string $orderNum)
|
||||
{
|
||||
|
||||
@@ -6,6 +6,5 @@ use App\Repositories\BaseRepositoryInterface;
|
||||
interface OrderRepositoryInterface extends BaseRepositoryInterface{
|
||||
public function filter(array $data = [],array $relationships = [],array $withCount = [],array $select = ['*'], bool $returnQuery = false);
|
||||
public function findWithRelationships(int $id = 0, array $relationships = [],array $withCount = [], array $withSum = []);
|
||||
public function updateBy(string $key = '',string|int $value = '',array $data =[]);
|
||||
public function findByOrderNum(string $orderNum);
|
||||
}
|
||||
Reference in New Issue
Block a user