Completed
Push — master ( d48c4c...a0253a )
by Scott
02:29
created
classes/ProductsQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
             })
@@ -71,17 +71,17 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected function applyOrderByStatements()
73 73
     {
74
-        print_r ($this->params);
74
+        print_r($this->params);
75 75
 
76 76
         if (array_key_exists('products_sort_column', $this->params) &&
77 77
             array_key_exists('products_sort_direction', $this->params)) {
78
-            print_r ('ordering by params');
78
+            print_r('ordering by params');
79 79
             $this->query->orderBy($this->params['products_sort_column'], $this->params['products_sort_direction']);
80 80
         } elseif ($this->category->isCustomSorted()) {
81
-            print_r ('custom order');
81
+            print_r('custom order');
82 82
             $this->applyCustomOrder();
83 83
         } else {
84
-            print_r ('ordering by category defaults');
84
+            print_r('ordering by category defaults');
85 85
             $this->query->orderBy($this->category->product_sort_column, $this->category->product_sort_direction);
86 86
         }
87 87
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function applyProductFilters()
112 112
     {
113
-        $this->query->where(function ($q) {
113
+        $this->query->where(function($q) {
114 114
             foreach ($this->category->filters as $filter) {
115 115
                 $right = $filter->getRightClause();
116 116
                 $q->where($filter->left, $filter->comparator, $right);
Please login to merge, or discard this patch.