Test Failed
Branch v5 (12d602)
by Alexey
04:51
created
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' => \Ui\ActiveForm::getOptionsList($this->colParams, $this->activeFormParams, !empty($this->modelName) ? $this->modelName : $this->activeForm->modelName, $inputName,[],$this->activeForm->model)
24
+            'values' => \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
@@ -311,10 +311,10 @@
 block discarded – undo
311 311
             ?>
312 312
             <script>
313 313
               setInterval(function () {
314
-                var hash = '<?=$hash;?>';
315
-                var files = '<?=http_build_query(['files' => array_keys($urls)]);?>';
314
+                var hash = '<?=$hash; ?>';
315
+                var files = '<?=http_build_query(['files' => array_keys($urls)]); ?>';
316 316
                 var timeHash = '<?=$timeMd5?>';
317
-                var id = '<?=$id;?>';
317
+                var id = '<?=$id; ?>';
318 318
                 // 1. Создаём новый объект XMLHttpRequest
319 319
                 var xhr = new XMLHttpRequest();
320 320
 
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/CartController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
298 298
         /**
299 299
          * @var \Ecommerce\Cart\Item[] $cartItems
300 300
          */
301
-        $cartItems =[];
302
-        foreach ($cart->cartItems as $cartItem){
301
+        $cartItems = [];
302
+        foreach ($cart->cartItems as $cartItem) {
303 303
             $cartItems[$cartItem->price->item_offer_id] = $cartItem;
304 304
         }
305 305
         if (!empty($this->ecommerce->config['cartAddToggle']) && isset($cartItems[$offer->id])) {
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/EcommerceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
         if (!$item) {
311 311
             Tools::redirect('/ecommerce/', 'Такой товар не найден');
312 312
         }
313
-        if(!$item->isVisible()){
313
+        if (!$item->isVisible()) {
314 314
             Tools::redirect('/ecommerce/', 'Этот товар сейчас недоступен');
315 315
         }
316 316
         $active = $item->category_id;
Please login to merge, or discard this patch.
system/Inji/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         }
107 107
         return false;
108 108
     }
109
-    public function possibleModuleClasses($moduleName){
109
+    public function possibleModuleClasses($moduleName) {
110 110
         $possibleModules = [];
111 111
         if ($this->namespace) {
112 112
             $possibleModules[] = $this->namespace . '\\' . $moduleName;
Please login to merge, or discard this patch.
system/Inji/Model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1023,12 +1023,12 @@  discard block
 block discarded – undo
1023 1023
         }
1024 1024
         static::$relJoins = [];
1025 1025
         if (!empty($options['limit'])) {
1026
-            $limit = (int)$options['limit'];
1026
+            $limit = (int) $options['limit'];
1027 1027
         } else {
1028 1028
             $limit = 0;
1029 1029
         }
1030 1030
         if (!empty($options['start'])) {
1031
-            $start = (int)$options['start'];
1031
+            $start = (int) $options['start'];
1032 1032
         } else {
1033 1033
             $start = 0;
1034 1034
         }
@@ -1134,12 +1134,12 @@  discard block
 block discarded – undo
1134 1134
             $query->order($options['order']);
1135 1135
         }
1136 1136
         if (!empty($options['limit'])) {
1137
-            $limit = (int)$options['limit'];
1137
+            $limit = (int) $options['limit'];
1138 1138
         } else {
1139 1139
             $limit = 0;
1140 1140
         }
1141 1141
         if (!empty($options['start'])) {
1142
-            $start = (int)$options['start'];
1142
+            $start = (int) $options['start'];
1143 1143
         } else {
1144 1144
             $start = 0;
1145 1145
         }
@@ -1858,13 +1858,13 @@  discard block
 block discarded – undo
1858 1858
         if (!empty($className::$cols[$shortName])) {
1859 1859
             switch ($className::$cols[$shortName]['type']) {
1860 1860
                 case 'decimal':
1861
-                    $value = (float)$value;
1861
+                    $value = (float) $value;
1862 1862
                     break;
1863 1863
                 case 'number':
1864
-                    $value = (int)$value;
1864
+                    $value = (int) $value;
1865 1865
                     break;
1866 1866
                 case 'bool':
1867
-                    $value = (bool)$value;
1867
+                    $value = (bool) $value;
1868 1868
                     break;
1869 1869
             }
1870 1870
         }
Please login to merge, or discard this patch.
system/modules/Db/objects/InjiStorage/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         return $this->connection->updateItems($tableName, $this->whereArray, $values, $this->dbOptions);
62 62
     }
63 63
 
64
-    public function delete(string $tableName='') {
64
+    public function delete(string $tableName = '') {
65 65
         if (!$tableName) {
66 66
             $tableName = $this->table;
67 67
         }
Please login to merge, or discard this patch.
system/modules/Ui/objects/ActiveForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         return true;
249 249
     }
250 250
 
251
-    public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [],$model=false) {
251
+    public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [], $model = false) {
252 252
         $values = [];
253 253
         switch ($inputParams['source']) {
254 254
             case 'model':
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
                 break;
260 260
             case 'method':
261 261
                 if (!empty($inputParams['params'])) {
262
-                    $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params']+[$model]);
262
+                    $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params'] + [$model]);
263 263
                 } else {
264 264
                     $values = \App::$cur->{$inputParams['module']}->{$inputParams['method']}($model);
265 265
                 }
Please login to merge, or discard this patch.