@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | protected function applyCustomOrder() |
| 58 | 58 | { |
| 59 | 59 | $this->query |
| 60 | - ->join('bedard_shop_category_product', function ($join) { |
|
| 60 | + ->join('bedard_shop_category_product', function($join) { |
|
| 61 | 61 | $join->on('bedard_shop_products.id', '=', 'bedard_shop_category_product.product_id') |
| 62 | 62 | ->where('bedard_shop_category_product.category_id', '=', $this->category->id); |
| 63 | 63 | }) |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->query->orderBy($this->category->product_sort_column, $this->category->product_sort_direction); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - print_r ($this->query->toSql()); |
|
| 88 | + print_r($this->query->toSql()); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | protected function applyProductFilters() |
| 114 | 114 | { |
| 115 | - $this->query->where(function ($q) { |
|
| 115 | + $this->query->where(function($q) { |
|
| 116 | 116 | foreach ($this->category->filters as $filter) { |
| 117 | 117 | $right = $filter->getRightClause(); |
| 118 | 118 | $q->where($filter->left, $filter->comparator, $right); |