Test Failed
Push — master ( 61f61c...455e4b )
by Alexey
04:03
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.