mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Linting fixes
This commit is contained in:
parent
5a1da4c2c1
commit
ede2d93363
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user