Passed
Push — master ( 226728...328474 )
by Alexey
11:39
created
system/modules/Money/install_script.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-return function($step = NULL, $params = []) {
3
+return function ($step = NULL, $params = []) {
4 4
 
5 5
     $groups = [
6 6
         [
Please login to merge, or discard this patch.
system/modules/Money/widgets/cabinet/walletBlocked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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('У вас нет такого кошелька');
Please login to merge, or discard this patch.
extensions/Dashboard/snippets/adminDashboardWidget/userFormsStatistic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
system/modules/Notifications/install_script.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
         [
Please login to merge, or discard this patch.
system/modules/Ui/Extensions/Access/snippets/accessGetter/Ui_ActiveForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
system/program/admin/templates/default/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
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
 ];
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/items/showOptions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/EcommerceController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.