Test Failed
Push — master ( c015ac...16d399 )
by Alexey
04:19
created
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
 if (!empty($options['attributes'])) {
38 38
     $attributes = array_merge($attributes, $options['attributes']);
39 39
 }
40
-if(!empty($attributes['onchange'])){
40
+if (!empty($attributes['onchange'])) {
41 41
     unset($attributes['onchange']);
42 42
 }
43 43
 echo Html::el('input', $attributes, '', null);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 <script>
60 60
   inji.onLoad(function () {
61 61
     setTimeout(function () {
62
-      inji.Ui.autocomplete.bind(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>);
62
+      inji.Ui.autocomplete.bind(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>);
63 63
     }, 100);
64 64
   });
65 65
 </script>
Please login to merge, or discard this patch.
system/modules/Ecommerce/appControllers/CartController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
                 call_user_func_array(['Tools', 'redirect'], $redirect);
181 181
             }
182 182
 
183
-        } elseif($cart) {
183
+        } elseif ($cart) {
184 184
             $payTypes = $cart->availablePayTypes();
185 185
         }
186 186
         $this->view->setTitle('Корзина');
Please login to merge, or discard this patch.
system/modules/Exchange1c/appAdminControllers/Exchange1cController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         ignore_user_abort(true);
16 16
         set_time_limit(0);
17 17
         Model::$logging = false;
18
-        $reExchange = Exchange1c\Exchange::get((int)$_GET['item_pk']);
18
+        $reExchange = Exchange1c\Exchange::get((int) $_GET['item_pk']);
19 19
 
20 20
         $exchange = new \Exchange1c\Exchange();
21 21
         $exchange->type = $reExchange->type;
Please login to merge, or discard this patch.
system/Inji/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
 
217 217
         $image = self::imgToResource($imagePath);
218 218
         $watermark = self::imgToResource($watermarkPath);
219
-        if(!$image || !$watermark || !$image['res'] || !$watermark['res']){
219
+        if (!$image || !$watermark || !$image['res'] || !$watermark['res']) {
220 220
             return false;
221 221
         }
222 222
 
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Init.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function process()
20 20
     {
21
-        if($this->log->type=='catalog'){
21
+        if ($this->log->type == 'catalog') {
22 22
             echo "zip=yes\n";
23 23
             echo 'file_limit=' . \Tools::toBytes(ini_get('upload_max_filesize'));
24
-        } elseif($this->log->type=='sale'){
24
+        } elseif ($this->log->type == 'sale') {
25 25
             echo "zip=no\n";
26 26
         }
27
-        if(!empty($_GET["version"]))
27
+        if (!empty($_GET["version"]))
28 28
         {
29
-            echo $this->log->exchange->session."\n";
29
+            echo $this->log->exchange->session . "\n";
30 30
             echo "version=2.03";
31 31
         }
32 32
         $this->end();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             $query = \App::$cur->db->newQuery();
38 38
             $query->operation = 'select';
39 39
             $query->table = \Exchange1c\Exchange::table();
40
-            $query->cols = \Exchange1c\Exchange::index().','.\Exchange1c\Exchange::colPrefix() . 'path';
40
+            $query->cols = \Exchange1c\Exchange::index() . ',' . \Exchange1c\Exchange::colPrefix() . 'path';
41 41
             $queryArr = $query->buildQuery();
42 42
             $queryArr['query'] .= ' where `' . \Exchange1c\Exchange::colPrefix() . 'cleared` = 0 AND  `' . \Exchange1c\Exchange::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval'];
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 \Tools::delDir($exchangeArr[\Exchange1c\Exchange::colPrefix() . 'path']);
47 47
                 $query = \App::$cur->db->newQuery();
48 48
                 $query->where([\Exchange1c\Exchange::index(), $exchangeArr[\Exchange1c\Exchange::index()]]);
49
-                $query->update(\Exchange1c\Exchange::table(),[\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]);
49
+                $query->update(\Exchange1c\Exchange::table(), [\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]);
50 50
             }
51 51
         }
52 52
     }
Please login to merge, or discard this patch.