@@ -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()); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | if (empty($objectsCols[$param->object_id])) { |
| 50 | 50 | $modelName = $param->object->model; |
| 51 | 51 | foreach (array_keys($modelName::$cols) as $colName) { |
| 52 | - $objectsCols[$param->object_id][$colName] = !empty($modelName::$labels[$colName])?$modelName::$labels[$colName]:$colName; |
|
| 52 | + $objectsCols[$param->object_id][$colName] = !empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName; |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | $modelName = $param->object->model; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | function parseColsForModel($cols = []) |
| 27 | 27 | { |
| 28 | - $modelCols = [ 'labels' => [], 'cols' => [], 'relations' => []]; |
|
| 28 | + $modelCols = ['labels' => [], 'cols' => [], 'relations' => []]; |
|
| 29 | 29 | foreach ($cols as $col) { |
| 30 | 30 | $modelCols['labels'][$col['code']] = $col['label']; |
| 31 | 31 | $colType = !empty($col['type']['primary']) ? $col['type']['primary'] : $col['type']; |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | return function($reward, $user) { |
| 4 | 4 | return [ |
| 5 | - 'date' => date('Y-m-d H:i:s',mktime(0, 0, 0, date('n'), date("j") + 1, date("Y"))), |
|
| 5 | + 'date' => date('Y-m-d H:i:s', mktime(0, 0, 0, date('n'), date("j") + 1, date("Y"))), |
|
| 6 | 6 | 'type' => 'burn' |
| 7 | 7 | ]; |
| 8 | 8 | }; |