Completed
Push — master ( cd826b...6cd982 )
by Alexey
06:32 queued 01:53
created
system/modules/Ecommerce/models/Item.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -114,17 +114,17 @@  discard block
 block discarded – undo
114 114
   public function beforeSave() {
115 115
 
116 116
     if ($this->id) {
117
-      $this->search_index = $this->name . ' ';
117
+      $this->search_index = $this->name.' ';
118 118
       if ($this->category) {
119
-        $this->search_index .= $this->category->name . ' ';
119
+        $this->search_index .= $this->category->name.' ';
120 120
       }
121 121
       if ($this->options) {
122 122
         foreach ($this->options as $option) {
123 123
           if ($option->item_option_searchable && $option->value) {
124 124
             if ($option->item_option_type != 'select') {
125
-              $this->search_index .= $option->value . ' ';
125
+              $this->search_index .= $option->value.' ';
126 126
             } elseif (!empty($option->option->items[$option->value])) {
127
-              $option->option->items[$option->value]->value . ' ';
127
+              $option->option->items[$option->value]->value.' ';
128 128
             }
129 129
           }
130 130
         }
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
             foreach ($offer->options as $option) {
136 136
               if ($option->item_offer_option_searchable && $option->value) {
137 137
                 if ($option->item_offer_option_type != 'select') {
138
-                  $this->search_index .= $option->value . ' ';
138
+                  $this->search_index .= $option->value.' ';
139 139
                 } elseif (!empty($option->option->items[$option->value])) {
140
-                  $option->option->items[$option->value]->value . ' ';
140
+                  $option->option->items[$option->value]->value.' ';
141 141
                 }
142 142
               }
143 143
             }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             'col' => 'item_id',
161 161
             //'resultKey' => 'code',
162 162
             'resultKey' => 'item_option_id',
163
-            'join' => [Item\Option::table(), Item\Option::index() . ' = ' . Item\Param::colPrefix() . Item\Option::index()]
163
+            'join' => [Item\Option::table(), Item\Option::index().' = '.Item\Param::colPrefix().Item\Option::index()]
164 164
         ],
165 165
         'offers' => [
166 166
             'type' => 'many',
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $curPrice = $price;
197 197
       } elseif (
198 198
               (!$price->type->roles && !$curPrice) ||
199
-              ($price->type->roles && !$curPrice && strpos($price->type->roles, "|" . \Users\User::$cur->role_id . "|") !== false)
199
+              ($price->type->roles && !$curPrice && strpos($price->type->roles, "|".\Users\User::$cur->role_id."|") !== false)
200 200
       ) {
201 201
         $curPrice = $price;
202 202
       }
Please login to merge, or discard this patch.