@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function($step = NULL, $params = []) { |
|
| 3 | +return function ($step = NULL, $params = []) { |
|
| 4 | 4 | |
| 5 | 5 | $groups = [ |
| 6 | 6 | [ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <h3>История счета</h3> |
| 2 | 2 | <?php |
| 3 | -$currency_id = !empty($_GET['currency_id']) ? (int)$_GET['currency_id'] : 0; |
|
| 3 | +$currency_id = !empty($_GET['currency_id']) ? (int) $_GET['currency_id'] : 0; |
|
| 4 | 4 | $wallets = App::$cur->money->getUserWallets(); |
| 5 | 5 | if ($currency_id && empty($wallets[$currency_id])) {
|
| 6 | 6 | Msg::add('У вас нет такого кошелька');
|
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | return [ |
| 3 | - 'widget' => function() { |
|
| 3 | + 'widget' => function () { |
|
| 4 | 4 | ?> |
| 5 | 5 | <div class="panel panel-default"> |
| 6 | 6 | <div class="panel-heading">Отзывы</div> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return function($step = null, $params = []) { |
|
| 3 | +return function ($step = null, $params = []) { |
|
| 4 | 4 | $options = ['max_height' => 1200, 'max_width' => 1200]; |
| 5 | 5 | $types = [ |
| 6 | 6 | [ |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | return [ |
| 12 | 12 | 'classes' => ['Ui\DataManager'], |
| 13 | - 'get' => function($element) { |
|
| 13 | + 'get' => function ($element) { |
|
| 14 | 14 | $access = null; |
| 15 | 15 | $path = [ |
| 16 | 16 | 'models', |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | 'file' => 'index.html', |
| 6 | 6 | 'css' => ['style.css'], |
| 7 | 7 | 'libs' => [ |
| 8 | - 'JqueryUi', 'PaperTheme','FancyBox' |
|
| 8 | + 'JqueryUi', 'PaperTheme', 'FancyBox' |
|
| 9 | 9 | ] |
| 10 | 10 | ]; |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | <div class="row"> |
| 14 | 14 | <div class="col-xs-6 ecommerce-showoptions-sort"> |
| 15 | 15 | <span class="caption">Сортировка:</span> |
| 16 | - <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => 'asc']])); ?>">По цене<?=sortDirectionIcon('price');?></a> |
|
| 17 | - <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => 'desc']])); ?>">По популярности<?=sortDirectionIcon('sales');?></a> |
|
| 16 | + <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => 'asc']])); ?>">По цене<?=sortDirectionIcon('price'); ?></a> |
|
| 17 | + <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => 'desc']])); ?>">По популярности<?=sortDirectionIcon('sales'); ?></a> |
|
| 18 | 18 | </div> |
| 19 | 19 | <div class="col-xs-6 text-right ecommerce-showoptions-view"> |
| 20 | 20 | <span class="caption">Вид:</span> |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $user = Users\User::$cur; |
| 18 | 18 | if (!empty($_POST) && !empty($_POST['card_id'])) { |
| 19 | 19 | $error = false; |
| 20 | - $card = \Ecommerce\Card::get((int)$_POST['card_id']); |
|
| 20 | + $card = \Ecommerce\Card::get((int) $_POST['card_id']); |
|
| 21 | 21 | if (!$card) { |
| 22 | 22 | $error = true; |
| 23 | 23 | Msg::add('Такой карты не существует', 'danger'); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | //search |
| 104 | 104 | if (!empty($_GET['search'])) { |
| 105 | 105 | if (!empty($_GET['inCatalog'])) { |
| 106 | - $category_id = (int)$_GET['inCatalog']; |
|
| 106 | + $category_id = (int) $_GET['inCatalog']; |
|
| 107 | 107 | } |
| 108 | 108 | $search = $_GET['search']; |
| 109 | 109 | } else { |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $category_id = 0; |
| 138 | 138 | } |
| 139 | 139 | $active = $category_id; |
| 140 | - if(!empty($_GET['categorys'])){ |
|
| 140 | + if (!empty($_GET['categorys'])) { |
|
| 141 | 141 | $categorysList = $_GET['categorys']; |
| 142 | 142 | } |
| 143 | 143 | else { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | public function viewAction($id = '', $quick = 0) { |
| 218 | - $item = \Ecommerce\Item::get((int)$id); |
|
| 218 | + $item = \Ecommerce\Item::get((int) $id); |
|
| 219 | 219 | if (!$item) { |
| 220 | 220 | Tools::redirect('/ecommerce/', 'Такой товар не найден'); |
| 221 | 221 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $bread[] = ['text' => $item->name()]; |
| 235 | 235 | $this->view->setTitle($item->name()); |
| 236 | 236 | $options = [ |
| 237 | - 'data' => compact('item', 'active', 'catalog', 'bread','quick'), |
|
| 237 | + 'data' => compact('item', 'active', 'catalog', 'bread', 'quick'), |
|
| 238 | 238 | 'content' => $item->view ? $item->view : 'view', |
| 239 | 239 | ]; |
| 240 | 240 | if (isset($_GET['quickview'])) { |