@@ -268,7 +268,7 @@ |
||
| 268 | 268 | $result->send(); |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | - $item->sales ++; |
|
| 271 | + $item->sales++; |
|
| 272 | 272 | $item->save(); |
| 273 | 273 | |
| 274 | 274 | if (empty($_GET['count'])) |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | } |
| 98 | 98 | $helpText = ''; |
| 99 | 99 | if ((float) $delivery->max_cart_price) { |
| 100 | - $helpText.= 'При заказе товаров на сумму от ' . $delivery->max_cart_price . ' руб - бесплатно'; |
|
| 100 | + $helpText .= 'При заказе товаров на сумму от ' . $delivery->max_cart_price . ' руб - бесплатно'; |
|
| 101 | 101 | } |
| 102 | 102 | if ($delivery->info) { |
| 103 | 103 | if ($helpText) { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | static $forms = [ |
| 47 | 47 | 'manager' => [ |
| 48 | 48 | 'map' => [ |
| 49 | - ['name',], |
|
| 49 | + ['name', ], |
|
| 50 | 50 | ['price', 'currency_id'], |
| 51 | 51 | ['max_cart_price', 'icon_file_id'], |
| 52 | 52 | ['info'] |
@@ -72,12 +72,12 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $warehouse = Offer\Warehouse::get([['count', '0', '>'], ['item_offer_id', $this->id]]); |
| 74 | 74 | if ($warehouse) { |
| 75 | - $warehouse->count +=(float) $count; |
|
| 75 | + $warehouse->count += (float) $count; |
|
| 76 | 76 | $warehouse->save(); |
| 77 | 77 | } else { |
| 78 | 78 | $warehouse = Offer\Warehouse::get([['item_offer_id', $this->id]]); |
| 79 | 79 | if ($warehouse) { |
| 80 | - $warehouse->count +=(float) $count; |
|
| 80 | + $warehouse->count += (float) $count; |
|
| 81 | 81 | $warehouse->save(); |
| 82 | 82 | } |
| 83 | 83 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | static $forms = [ |
| 40 | 40 | 'manager' => [ |
| 41 | 41 | 'map' => [ |
| 42 | - ['price', 'currency_id',], |
|
| 42 | + ['price', 'currency_id', ], |
|
| 43 | 43 | ['item_offer_price_type_id', 'item_offer_id'] |
| 44 | 44 | ] |
| 45 | 45 | ]]; |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | foreach ($cart->cartItems as $cartItem) { |
| 134 | 134 | $isset = false; |
| 135 | 135 | foreach ($cItems as $key => $cItem) { |
| 136 | - if (!($cItem['item_id'] == $cartItem->item_id )) { |
|
| 136 | + if (!($cItem['item_id'] == $cartItem->item_id)) { |
|
| 137 | 137 | continue; |
| 138 | 138 | } |
| 139 | 139 | $isset = true; |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $args = func_get_args(); |
| 16 | 16 | $path = $this->module->getPath($args); |
| 17 | - if($path){ |
|
| 17 | + if ($path) { |
|
| 18 | 18 | $this->StaticLoader->giveFile($path); |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $this->loadLib($rLib); |
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | - if (!empty($className::$files['css']) && (!isset($options['loadCss']) || $options['loadCss'] )) { |
|
| 28 | + if (!empty($className::$files['css']) && (!isset($options['loadCss']) || $options['loadCss'])) { |
|
| 29 | 29 | foreach ($className::$files['css'] as $file) { |
| 30 | 30 | if (strpos($file, '/') === 0 || strpos($file, 'http') === 0) { |
| 31 | 31 | App::$cur->view->customAsset('css', $file, $libName); |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | if ($treePath) { |
| 132 | 132 | $categorys = Category::getList(['where' => ['id', implode(',', $treePath), 'IN']]); |
| 133 | 133 | foreach ($categorys as $category) { |
| 134 | - $href .="/{$category->alias}"; |
|
| 134 | + $href .= "/{$category->alias}"; |
|
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | return $href . "/" . ($this->alias ? $this->alias : $this->pk()); |