@@ -9,10 +9,10 @@ |
||
| 9 | 9 | |
| 10 | 10 | class CouponService extends BaseService |
| 11 | 11 | { |
| 12 | - public function __construct(CouponRepository $coupon) |
|
| 13 | - { |
|
| 14 | - $this->repo = $coupon; |
|
| 15 | - } |
|
| 12 | + public function __construct(CouponRepository $coupon) |
|
| 13 | + { |
|
| 14 | + $this->repo = $coupon; |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * The validation rules for the model. |
@@ -32,6 +32,6 @@ |
||
| 32 | 32 | |
| 33 | 33 | function selectAllActiveByShopId($shopId) |
| 34 | 34 | { |
| 35 | - return $this->model->where('shop_id', '=', $shopId)->get(); |
|
| 35 | + return $this->model->where('shop_id', '=', $shopId)->get(); |
|
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | \ No newline at end of file |
@@ -9,10 +9,10 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | class FaqService extends BaseService |
| 11 | 11 | { |
| 12 | - public function __construct(FaqItemRepository $faq) |
|
| 13 | - { |
|
| 14 | - $this->repo = $faq; |
|
| 15 | - } |
|
| 12 | + public function __construct(FaqItemRepository $faq) |
|
| 13 | + { |
|
| 14 | + $this->repo = $faq; |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * The validation rules for the model. |
@@ -67,6 +67,6 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | public function selectAllGroups() |
| 69 | 69 | { |
| 70 | - return $this->repo->selectAllGroups(); |
|
| 70 | + return $this->repo->selectAllGroups(); |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | \ No newline at end of file |
@@ -4,19 +4,19 @@ |
||
| 4 | 4 | |
| 5 | 5 | class BaseRepository |
| 6 | 6 | { |
| 7 | - public function selectAll() |
|
| 8 | - { |
|
| 9 | - return $this->model->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id)->get(); |
|
| 10 | - } |
|
| 7 | + public function selectAll() |
|
| 8 | + { |
|
| 9 | + return $this->model->where('shop_id', '=', auth('hideyobackend')->user()->selected_shop_id)->get(); |
|
| 10 | + } |
|
| 11 | 11 | |
| 12 | 12 | public function selectAllByShopId($shopId) |
| 13 | 13 | { |
| 14 | - return $this->model->where('shop_id', '=', $shopId)->get(); |
|
| 14 | + return $this->model->where('shop_id', '=', $shopId)->get(); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | public function selectAllActiveByShopId($shopId) |
| 18 | 18 | { |
| 19 | - return $this->model->where('shop_id', '=', $shopId)->where('active', '=', 1)->get(); |
|
| 19 | + return $this->model->where('shop_id', '=', $shopId)->where('active', '=', 1)->get(); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function getModel() { |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | class ExceptionService extends BaseService |
| 9 | 9 | { |
| 10 | - public function __construct(ExceptionItemRepository $exception) |
|
| 11 | - { |
|
| 12 | - $this->repo = $exception; |
|
| 13 | - } |
|
| 10 | + public function __construct(ExceptionItemRepository $exception) |
|
| 11 | + { |
|
| 12 | + $this->repo = $exception; |
|
| 13 | + } |
|
| 14 | 14 | } |
| 15 | 15 | \ No newline at end of file |