Fix linting issue

This commit is contained in:
Maxime Rainville 2020-06-25 17:04:20 +12:00
parent de9b93f5cd
commit 6f04f9537d

View File

@ -134,7 +134,7 @@ class RecoverUploadLocationsHelper
$errorsCount = 0;
// Loop over the files to process
foreach($this->chunk() as $uploadRecord) {
foreach ($this->chunk() as $uploadRecord) {
++$processedCount;
$fileId = $uploadRecord['UploadedFileID'];
@ -247,7 +247,8 @@ class RecoverUploadLocationsHelper
if ($this->filesVersioned) {
$draftVersion = Versioned::get_versionnumber_by_stage(File::class, Versioned::DRAFT, $fileId);
$liveVersion = Versioned::get_versionnumber_by_stage(File::class, Versioned::LIVE, $fileId);;
$liveVersion = Versioned::get_versionnumber_by_stage(File::class, Versioned::LIVE, $fileId);
;
if ($draftVersion && $draftVersion != $liveVersion) {
$draft = Versioned::get_version(File::class, $fileId, $draftVersion);