Test Failed
Push — master ( b74686...9a59de )
by Alexey
05:52
created
system/modules/Money/appControllers/content/exchange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         $form->end('Выбрать');
15 15
         foreach ($rates as $rate) {
16 16
             $form = new Ui\Form();
17
-            $form->id = 'form_'.Tools::randomString();
17
+            $form->id = 'form_' . Tools::randomString();
18 18
             $form->method = "GET";
19 19
             $form->begin();
20 20
             ?>
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/cart/payType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
     <div class="col-md-4">
3 3
         <ul class="nav nav-pills nav-stacked">
4 4
             <?php
5
-            $hiddenId = 'paytype_'.Tools::randomString();
5
+            $hiddenId = 'paytype_' . Tools::randomString();
6 6
             foreach ($payTypes as $payType) {
7 7
                 if ((!empty($_POST['payType']) && $_POST['payType'] == $payType->id) || ($cart->payType && $payType->id == $cart->payType->id)) {
8 8
                     $checked = 'checked';
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/cart/delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
     <div class="col-md-4">
3 3
         <ul class="nav nav-pills nav-stacked">
4 4
             <?php
5
-            $hiddenId = 'paytype_'.Tools::randomString();
5
+            $hiddenId = 'paytype_' . Tools::randomString();
6 6
             foreach ($deliverys as $delivery) {
7 7
                 if ((!empty($_POST['delivery']) && $_POST['delivery'] == $delivery->id) || ($cart->delivery && $delivery->id == $cart->delivery->id)) {
8 8
                     $checked = 'checked';
Please login to merge, or discard this patch.
system/modules/Ecommerce/objects/DeliveryProvider/CDEK.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             $calc->setTariffId($tariff);
54 54
             $calc->addGoodsItemBySize(3, 25, 25, 24);
55 55
             if ($calc->calculate()) {
56
-                return new \Money\Sums([$cart->delivery->currency_id => $calc->getResult()['result']['price']* 1.1]);
56
+                return new \Money\Sums([$cart->delivery->currency_id => $calc->getResult()['result']['price'] * 1.1]);
57 57
             } else {
58 58
                 //var_dump($tariff,$calc->getError());
59 59
             }
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/autocomplete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
   inji.onLoad(function () {
45 45
     setTimeout(function () {
46 46
       console.log(inji.Ui);
47
-      inji.Ui.autocomplete.bind(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>);
47
+      inji.Ui.autocomplete.bind(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>);
48 48
     }, 100);
49 49
   });
50 50
 </script>
Please login to merge, or discard this patch.
system/modules/Ui/objects/DataManager.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         ob_end_clean();
197 197
 
198 198
         $cols = [];
199
-        if($actions) {
199
+        if ($actions) {
200 200
             $cols[] = ['label' => $dropdown];
201 201
         }
202 202
         $cols['id'] = ['label' => '№', 'sortable' => true];
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
         $queryParams = [];
245 245
         if (empty($params['all'])) {
246 246
             if (!empty($params['limit'])) {
247
-                $this->limit = (int)$params['limit'];
247
+                $this->limit = (int) $params['limit'];
248 248
             }
249 249
             if (!empty($params['page'])) {
250
-                $this->page = (int)$params['page'];
250
+                $this->page = (int) $params['page'];
251 251
             }
252 252
             $queryParams['limit'] = $this->limit;
253 253
             $queryParams['start'] = $this->page * $this->limit - $this->limit;
@@ -492,8 +492,8 @@  discard block
 block discarded – undo
492 492
                 } elseif (\App::$cur->name == 'admin' && $colName == 'name') {
493 493
                     $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/' . str_replace('\\', '/', get_class($originalItem));
494 494
                     return "<a href ='/admin/{$item->genViewLink()}?redirectUrl={$redirectUrl}'>{$item->$colName}</a>";
495
-                } elseif ($modelName::$cols[$colName]['type'] == 'html' || $modelName::$cols[$colName]['type']=='textarea') {
496
-                    $uid = 'text_'.\Tools::randomString();
495
+                } elseif ($modelName::$cols[$colName]['type'] == 'html' || $modelName::$cols[$colName]['type'] == 'textarea') {
496
+                    $uid = 'text_' . \Tools::randomString();
497 497
                     $script = "<script>inji.onLoad(function(){
498 498
             var el{$uid}=$('#{$uid}');
499 499
             var height{$uid} = el{$uid}.height();
@@ -557,10 +557,10 @@  discard block
 block discarded – undo
557 557
             return [];
558 558
         }
559 559
         if (!empty($params['limit'])) {
560
-            $this->limit = (int)$params['limit'];
560
+            $this->limit = (int) $params['limit'];
561 561
         }
562 562
         if (!empty($params['page'])) {
563
-            $this->page = (int)$params['page'];
563
+            $this->page = (int) $params['page'];
564 564
         }
565 565
         $queryParams = [
566 566
             'count' => true
Please login to merge, or discard this patch.