Completed
Push — master ( 407162...e76e8a )
by Alexey
05:36
created
system/modules/Exchange1c/objects/Parser/Item/Images.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
         $dir = pathinfo($this->object->walker->migtarionLog->source, PATHINFO_DIRNAME);
24 24
         $this->model->image_file_id = 0;
25 25
         foreach ($value as $key => $imagePath) {
26
-            if (!$imagePath || !file_exists($dir . '/' . $imagePath)) {
26
+            if (!$imagePath || !file_exists($dir.'/'.$imagePath)) {
27 27
                 continue;
28 28
             }
29 29
             $notEq = true;
30
-            $md5Cur = md5_file($dir . '/' . $imagePath);
30
+            $md5Cur = md5_file($dir.'/'.$imagePath);
31 31
             foreach ($this->model->images as $imageId => $image) {
32 32
                 $file = $image->file;
33 33
                 $md5File = '';
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 }
46 46
             }
47 47
             if ($notEq) {
48
-                $file_id = \App::$primary->files->uploadFromUrl($dir . '/' . $imagePath, ['accept_group' => 'image', 'upload_code' => 'MigrationUpload']);
48
+                $file_id = \App::$primary->files->uploadFromUrl($dir.'/'.$imagePath, ['accept_group' => 'image', 'upload_code' => 'MigrationUpload']);
49 49
                 $image = new \Ecommerce\Item\Image([
50 50
                     'item_id' => $this->model->pk(),
51 51
                     'file_id' => $file_id
Please login to merge, or discard this patch.