Test Failed
Push — master ( c015ac...16d399 )
by Alexey
04:19
created
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 2 patches
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.
Braces   +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/Info.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Exchange1c\Exchange;
15 15
 
16
-class Info extends \Exchange1c\Mode
17
-{
16
+class Info extends \Exchange1c\Mode {
18 17
 
19
-    public function process()
20
-    {
18
+    public function process() {
21 19
         echo "version=2.03";
22 20
         $this->end();
23 21
     }
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Init.php 2 patches
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.
Braces   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,19 +13,16 @@
 block discarded – undo
13 13
 
14 14
 use Exchange1c\Exchange;
15 15
 
16
-class Init extends \Exchange1c\Mode
17
-{
16
+class Init extends \Exchange1c\Mode {
18 17
 
19
-    public function process()
20
-    {
21
-        if($this->log->type=='catalog'){
18
+    public function process() {
19
+        if($this->log->type=='catalog') {
22 20
             echo "zip=yes\n";
23 21
             echo 'file_limit=' . \Tools::toBytes(ini_get('upload_max_filesize'));
24
-        } elseif($this->log->type=='sale'){
22
+        } elseif($this->log->type=='sale') {
25 23
             echo "zip=no\n";
26 24
         }
27
-        if(!empty($_GET["version"]))
28
-        {
25
+        if(!empty($_GET["version"])) {
29 26
             echo $this->log->exchange->session."\n";
30 27
             echo "version=2.03";
31 28
         }
Please login to merge, or discard this patch.