Skip to content

Commit f6f8549

Browse files
ilestisgithub-actions[bot]
authored andcommitted
Apply automatic changes
1 parent 2ebe96d commit f6f8549

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/Services/Campaign/ExportService.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function prepare(): self
172172
Str::slug($this->campaign->name) . '_' .
173173
date('Ymd_His') . '.zip';
174174
CampaignCache::campaign($this->campaign);
175-
//$this->path = $saveFolder . $this->file;
175+
// $this->path = $saveFolder . $this->file;
176176
$this->archive = Zip::create($this->file);
177177

178178
// Count the number of elements to export to get a rough idea of progress
@@ -265,8 +265,8 @@ protected function entities(): self
265265
}
266266
} catch (Exception $e) {
267267
Log::error('Campaign export', ['err' => $e->getMessage()]);
268-
//$saveFolder = storage_path($this->exportPath);
269-
//$this->archive->saveTo($saveFolder);
268+
// $saveFolder = storage_path($this->exportPath);
269+
// $this->archive->saveTo($saveFolder);
270270
throw new Exception(
271271
'Missing campaign entity relation: ' . $entity . '-' . $class . '? '
272272
. $e->getMessage()
@@ -312,8 +312,8 @@ protected function customEntities(): self
312312
}
313313
} catch (Exception $e) {
314314
Log::error('Campaign export', ['err' => $e->getMessage()]);
315-
// $saveFolder = storage_path($this->exportPath);
316-
// $this->archive->saveTo($saveFolder);
315+
// $saveFolder = storage_path($this->exportPath);
316+
// $this->archive->saveTo($saveFolder);
317317
throw new Exception(
318318
'Missing campaign entity relation: ' . $entityType->singular . '? '
319319
. $e->getMessage()
@@ -343,8 +343,8 @@ protected function gallery(): self
343343
/** @var Image $image */
344344
$this->processImage($image);
345345
} catch (Exception $e) {
346-
// $saveFolder = storage_path($this->exportPath);
347-
// $this->archive->saveTo($saveFolder);
346+
// $saveFolder = storage_path($this->exportPath);
347+
// $this->archive->saveTo($saveFolder);
348348
throw new Exception(
349349
$e->getMessage()
350350
);
@@ -461,7 +461,7 @@ protected function finish(): self
461461
// Save all the content.
462462
try {
463463
$path = 'exports/campaigns/' . $this->campaign->id . '/';
464-
$this->exportPath = $path . $this->file;
464+
$this->exportPath = $path . $this->file;
465465
Log::info('Campaign export finished', ['exportPath' => $this->exportPath]);
466466
$this->archive->saveToDisk('s3', $path);
467467
Storage::disk('s3')->setVisibility($this->exportPath, 'public');

0 commit comments

Comments
 (0)