From a9654f00c8fbc9934289d761843ddd071025013f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 17:20:28 +0000
Subject: [PATCH] =PHPStorm Code Inspection: fixed class reference errors (from getting rid of JVB() and replacing with direct class::getInstance; as well as general code sniffing, etc
---
inc/managers/queue/executors/UploadExecutor.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/inc/managers/queue/executors/UploadExecutor.php b/inc/managers/queue/executors/UploadExecutor.php
index 7e1637e..138d022 100644
--- a/inc/managers/queue/executors/UploadExecutor.php
+++ b/inc/managers/queue/executors/UploadExecutor.php
@@ -198,7 +198,7 @@
}
}
- $progress->advance(1);
+ $progress->advance();
return new Result(
outcome: 'success',
@@ -269,7 +269,7 @@
$this->applyMeta($attachmentId, $info);
$updatedCount++;
- $progress->advance(1);
+ $progress->advance();
} catch (Exception $e) {
$success = false;
@@ -308,7 +308,7 @@
if (!empty($file['temp_path']) && file_exists($file['temp_path'])) {
@unlink($file['temp_path']);
}
- $progress->advance(1);
+ $progress->advance();
}
}
@@ -412,7 +412,7 @@
}
$usedUploads = array_merge($usedUploads, $created['usedUploads']);
- $progress->advance(1);
+ $progress->advance();
}
} catch (Exception $e) {
$errors[] = $e->getMessage();
@@ -557,7 +557,7 @@
if (array_key_exists($uploadId, $uploads)) {
$attachmentId = (int)$uploads[$uploadId]['attachment_id'];
if ($uploadId === $featured) {
- $featuredID = $attachmentId;;
+ $featuredID = $attachmentId;
} else {
$childPosts[] = $attachmentId;
}
--
Gitblit v1.10.0