Passed
Push — v5 ( c0775f...b45ef7 )
by Alexey
16:22
created
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
     \Inji\Msg::add('У вас нет такого кошелька');
Please login to merge, or discard this patch.
system/modules/Ui/appAdminControllers/content/dataManager/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     $type = !empty($colInfo['colParams']['type']) ? $colInfo['colParams']['type'] : 'string';
20 20
     if ($type != 'dataManager') {
21 21
         $table->addRow([
22
-            str_replace(' ','&nbsp;',!empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName),
22
+            str_replace(' ', '&nbsp;', !empty($modelName::$labels[$colName]) ? $modelName::$labels[$colName] : $colName),
23 23
             \Inji\Model::resloveTypeValue($item, $colName, true)
24 24
         ]);
25 25
     }
Please login to merge, or discard this patch.
system/modules/Ui/objects/DataManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
             'dataManager' => $this
83 83
         ]);
84 84
         if (!empty($params['limit'])) {
85
-            $this->limit = (int)$params['limit'];
85
+            $this->limit = (int) $params['limit'];
86 86
         }
87 87
         if (!empty($params['page'])) {
88
-            $this->page = (int)$params['page'];
88
+            $this->page = (int) $params['page'];
89 89
         }
90 90
         $queryParams = [
91 91
             'count' => true
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
         $queryParams = [];
235 235
         if (empty($params['all'])) {
236 236
             if (!empty($params['limit'])) {
237
-                $this->limit = (int)$params['limit'];
237
+                $this->limit = (int) $params['limit'];
238 238
             }
239 239
             if (!empty($params['page'])) {
240
-                $this->page = (int)$params['page'];
240
+                $this->page = (int) $params['page'];
241 241
             }
242 242
             $queryParams['limit'] = $this->limit;
243 243
             $queryParams['start'] = $this->page * $this->limit - $this->limit;
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm/Input/Select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $inputOptions = [
22 22
             'value' => $this->value(),
23 23
             'disabled' => $this->readOnly(),
24
-            'values' => \Inji\Ui\ActiveForm::getOptionsList($this->colParams, $this->activeFormParams, !empty($this->modelName) ? $this->modelName : $this->activeForm->modelName, $inputName,[],$this->activeForm->model)
24
+            'values' => \Inji\Ui\ActiveForm::getOptionsList($this->colParams, $this->activeFormParams, !empty($this->modelName) ? $this->modelName : $this->activeForm->modelName, $inputName, [], $this->activeForm->model)
25 25
         ];
26 26
         $modelName = '';
27 27
 
Please login to merge, or discard this patch.
system/modules/View/View.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,10 +314,10 @@
 block discarded – undo
314 314
             ?>
315 315
             <script>
316 316
                 setInterval(function () {
317
-                    var hash = '<?=$hash;?>';
318
-                    var files = '<?=http_build_query(['files' => array_keys($urls)]);?>';
317
+                    var hash = '<?=$hash; ?>';
318
+                    var files = '<?=http_build_query(['files' => array_keys($urls)]); ?>';
319 319
                     var timeHash = '<?=$timeMd5?>';
320
-                    var id = '<?=$id;?>';
320
+                    var id = '<?=$id; ?>';
321 321
                     // 1. Создаём новый объект XMLHttpRequest
322 322
                     var xhr = new XMLHttpRequest();
323 323
 
Please login to merge, or discard this patch.
system/modules/Materials/controllers/MaterialsAppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $material = null;
18 18
         $path = trim(implode('/', $args));
19 19
         if (is_numeric($path)) {
20
-            $material = Material::get([['id', (int)$path], ['date_publish', null, 'IS NOT']]);
20
+            $material = Material::get([['id', (int) $path], ['date_publish', null, 'IS NOT']]);
21 21
         }
22 22
         if (!$material && $args) {
23 23
             foreach ($args as $key => $alias) {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                 if ($category) {
44 44
                     $where = [
45 45
                         ['category_id', $category->id],
46
-                        ['id', (int)$args[count($args) - 1]],
46
+                        ['id', (int) $args[count($args) - 1]],
47 47
                         ['date_publish', null, 'IS NOT']
48 48
                     ];
49 49
                 } else {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $path = trim(implode('/', $args));
77 77
         $category = null;
78 78
         if (is_numeric($path)) {
79
-            $category = Category::get((int)$path);
79
+            $category = Category::get((int) $path);
80 80
         }
81 81
         if (!$category) {
82 82
             foreach ($args as $alias) {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $material = false;
112 112
         if ($alias) {
113 113
             if (is_numeric($alias)) {
114
-                $material = Material::get([['id', (int)$alias], ['date_publish', null, 'IS NOT']]);
114
+                $material = Material::get([['id', (int) $alias], ['date_publish', null, 'IS NOT']]);
115 115
             }
116 116
             if (!$material) {
117 117
                 $material = Material::get([['alias', $alias], ['date_publish', null, 'IS NOT']]);
Please login to merge, or discard this patch.
system/modules/Users/controllers/UsersAppController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     public function activationAction($userId = 0, $hash = '') {
129
-        $user = User::get((int)$userId);
130
-        if (!$user || !$hash || $user->activation !== (string)$hash) {
129
+        $user = User::get((int) $userId);
130
+        if (!$user || !$hash || $user->activation !== (string) $hash) {
131 131
             Tools::redirect('/', 'Во время активации произошли ошибки', 'danger');
132 132
         }
133 133
         $user->activation = '';
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     }
171 171
 
172 172
     public function resendActivationAction($userId = 0) {
173
-        $user = User::get((int)$userId);
173
+        $user = User::get((int) $userId);
174 174
         if (!$user) {
175 175
             Tools::redirect('/', 'Не указан пользователь', 'danger');
176 176
         }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     public function getPartnerInfoAction($userId = 0) {
189
-        $userId = (int)$userId;
189
+        $userId = (int) $userId;
190 190
         $result = new Result();
191 191
         if (!$userId) {
192 192
             $result->success = false;
Please login to merge, or discard this patch.