Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-12 18:55:01 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-05-20 23:18:06 +0300
commitb70c6a128fe5d0053b7971881696eafce4cb7c26 (patch)
tree641ff76531803c207a92d86f47d46b6dd93ab6d3 /core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
parent2b0d82675f669f00ad90f2750b1832a60ec9f766 (diff)
Update core to PHP 7.4 standardcore-cleanup-74
- Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php')
-rw-r--r--core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
index d699eac3768..ceff579b1c7 100644
--- a/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
+++ b/core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
@@ -28,23 +28,19 @@ namespace OC\Core\BackgroundJobs;
use OC\BackgroundJob\QueuedJob;
use OCP\IConfig;
-use OCP\ILogger;
+use Psr\Log\LoggerInterface;
class BackgroundCleanupUpdaterBackupsJob extends QueuedJob {
+ protected IConfig $config;
+ protected LoggerInterface $log;
- /** @var IConfig */
- protected $config;
- /** @var ILogger */
- protected $log;
-
- public function __construct(IConfig $config, ILogger $log) {
+ public function __construct(IConfig $config, LoggerInterface $log) {
$this->config = $config;
$this->log = $log;
}
/**
* This job cleans up all backups except the latest 3 from the updaters backup directory
- *
*/
public function run($arguments) {
$dataDir = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');