Test Failed
Push — master ( 89dfd0...61f61c )
by Alexey
11:02 queued 06:40
created
system/modules/Ecommerce/widgets/items/showOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
17 17
     <div class="row">
18 18
         <div class="col-sm-7 ecommerce-showoptions-sort">
19 19
             <span class="caption">Сортировка:</span>
20
-            <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price','asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a>
21
-            <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales','desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a>
20
+            <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price', 'asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a>
21
+            <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales', 'desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a>
22 22
             <?php
23 23
             if (!empty(App::$cur->ecommerce->config['isset_sort'])) {
24 24
                 ?>
25
-                <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset','desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a>
25
+                <a rel="nofollow" href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset', 'desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a>
26 26
                 <?php
27 27
             }
28 28
             ?>
Please login to merge, or discard this patch.
system/modules/Users/Users.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             ['user_id', $userId],
66 66
             ['hash', $hash]
67 67
         ]);
68
-        if(!$session){
68
+        if (!$session) {
69 69
             if (!headers_sent()) {
70 70
                 setcookie($this->cookiePrefix . "_user_session_hash", '', 0, "/");
71 71
                 setcookie($this->cookiePrefix . "_user_id", '', 0, "/");
Please login to merge, or discard this patch.
system/modules/Chats/models/Chat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
     public static $cols = [
17 17
         'name' => ['type' => 'text'],
18 18
         'code' => ['type' => 'text'],
19
-        'message' => ['type' => 'dataManager','relation'=>'messages'],
19
+        'message' => ['type' => 'dataManager', 'relation'=>'messages'],
20 20
     ];
21 21
     public static $dataManagers = [
22 22
         'manager' => [
23
-            'cols' => ['name', 'code','message']
23
+            'cols' => ['name', 'code', 'message']
24 24
         ]
25 25
     ];
26 26
     public static $forms = [
Please login to merge, or discard this patch.
modules/Ui/Extensions/Ui/snippets/autocomplete/deliveryFieldItems.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     },
21 21
     'getValueText' => function ($value, $params) {
22 22
         $value = \Ecommerce\Delivery\Field\Item::get($value);
23
-        if($value){
23
+        if ($value) {
24 24
             return $value->value;
25 25
         }
26 26
         return '';
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/autocomplete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 <div class="form-search-results"></div>
39 39
 <script>
40
-  window.autocomplete<?=$id;?> = function (element, snippet, snippetParams) {
40
+  window.autocomplete<?=$id; ?> = function (element, snippet, snippetParams) {
41 41
     element.element.onkeyup = function () {
42 42
       var inputContainer = element.element.parentNode;
43 43
       var selectedDiv = inputContainer.querySelector('.form-search-cur');
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
   };
91 91
   inji.onLoad(function () {
92 92
     setTimeout(function () {
93
-      new window.autocomplete<?=$id;?>(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>);
93
+      new window.autocomplete<?=$id; ?>(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>);
94 94
     },100);
95 95
   });
96 96
 </script>
Please login to merge, or discard this patch.
system/modules/Ecommerce/models/Delivery/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public static $dataManagers = [
40 40
         'manager' => [
41 41
             'cols' => [
42
-                'name','code', 'type', 'userfield', 'required', 'fieldItem', 'save'
42
+                'name', 'code', 'type', 'userfield', 'required', 'fieldItem', 'save'
43 43
             ],
44 44
         ]
45 45
     ];
Please login to merge, or discard this patch.
system/modules/Ecommerce/models/Cart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
     }
367 367
 
368 368
     public function hasDiscount() {
369
-        return (bool)$this->card || $this->discounts;
369
+        return (bool) $this->card || $this->discounts;
370 370
     }
371 371
 
372 372
     public function discountSum() {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     }
398 398
 
399 399
     public function addItem($offer_price_id, $count = 1, $final_price = 0) {
400
-        $price = Item\Offer\Price::get((int)$offer_price_id);
400
+        $price = Item\Offer\Price::get((int) $offer_price_id);
401 401
 
402 402
         if (!$price) {
403 403
             return false;
Please login to merge, or discard this patch.
system/modules/Ecommerce/models/Delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     public static $forms = [
84 84
         'manager' => [
85 85
             'map' => [
86
-                ['name','delivery_provider_id', 'disabled'],
86
+                ['name', 'delivery_provider_id', 'disabled'],
87 87
                 ['price', 'currency_id'],
88 88
                 ['max_cart_price', 'icon_file_id'],
89 89
                 ['price_text'],
Please login to merge, or discard this patch.
system/modules/Ecommerce/objects/Vendor/CalculatePriceDeliveryCdek.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param int $id города
84 84
      */
85 85
     public function setSenderCityId($id) {
86
-        $id = (int)$id;
86
+        $id = (int) $id;
87 87
         if ($id == 0) {
88 88
             throw new \Exception("Неправильно задан город-отправитель.");
89 89
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param int $id города
97 97
      */
98 98
     public function setReceiverCityId($id) {
99
-        $id = (int)$id;
99
+        $id = (int) $id;
100 100
         if ($id == 0) {
101 101
             throw new \Exception("Неправильно задан город-получатель.");
102 102
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @param int $id тарифа
110 110
      */
111 111
     public function setTariffId($id) {
112
-        $id = (int)$id;
112
+        $id = (int) $id;
113 113
         if ($id == 0) {
114 114
             throw new \Exception("Неправильно задан тариф.");
115 115
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param int $id режим доставки
123 123
      */
124 124
     public function setModeDeliveryId($id) {
125
-        $id = (int)$id;
125
+        $id = (int) $id;
126 126
         if (!in_array($id, array(1, 2, 3, 4))) {
127 127
             throw new \Exception("Неправильно задан режим доставки.");
128 128
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function addGoodsItemBySize($weight, $length, $width, $height) {
141 141
         //проверка веса
142
-        $weight = (float)$weight;
142
+        $weight = (float) $weight;
143 143
         if ($weight == 0.00) {
144 144
             throw new \Exception("Неправильно задан вес места № " . (count($this->getGoodslist()) + 1) . ".");
145 145
         }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             "ширина" => $width,
149 149
             "высота" => $height);
150 150
         foreach ($paramsItem as $k => $param) {
151
-            $param = (int)$param;
151
+            $param = (int) $param;
152 152
             if ($param == 0) {
153 153
                 throw new \Exception("Неправильно задан параметр '" . $k . "' места № " . (count($this->getGoodslist()) + 1) . ".");
154 154
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $paramsItem = array("вес" => $weight,
170 170
             "объёмный вес" => $volume);
171 171
         foreach ($paramsItem as $k => $param) {
172
-            $param = (float)$param;
172
+            $param = (float) $param;
173 173
             if ($param == 0.00) {
174 174
                 throw new \ption("Неправильно задан параметр '" . $k . "' места № " . (count($this->getGoodslist()) + 1) . ".");
175 175
             }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * @param int $priority default false приоритет
198 198
      */
199 199
     public function addTariffPriority($id, $priority = 0) {
200
-        $id = (int)$id;
200
+        $id = (int) $id;
201 201
         if ($id == 0) {
202 202
             throw new \Exception("Неправильно задан id тарифа.");
203 203
         }
Please login to merge, or discard this patch.