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

github.com/nextcloud/files_antivirus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 18:42:42 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-09-29 18:42:42 +0300
commitb3efcc04c230cad71ddd61964b3ad7afc50ea128 (patch)
treec1519c4db9da7c28d4a4cb3d9c0c2ab9ad7dd684 /lib
parent9e12a9e6623c5b39ab3127e48ed3388d3702d1ab (diff)
Fix typing and other small errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJob/BackgroundScanner.php2
-rw-r--r--lib/ItemFactory.php6
-rw-r--r--lib/Status.php6
3 files changed, 6 insertions, 8 deletions
diff --git a/lib/BackgroundJob/BackgroundScanner.php b/lib/BackgroundJob/BackgroundScanner.php
index 3a99b1f..3023736 100644
--- a/lib/BackgroundJob/BackgroundScanner.php
+++ b/lib/BackgroundJob/BackgroundScanner.php
@@ -62,7 +62,7 @@ class BackgroundScanner extends TimedJob {
/**
* Background scanner main job
*/
- public function run($args): void {
+ public function run($argument): void {
if ($this->appConfig->getAppValue('av_background_scan') !== 'on') {
// Background checking disabled no need to continue
$this->logger->debug('Antivirus background scan disablled, skipping');
diff --git a/lib/ItemFactory.php b/lib/ItemFactory.php
index 32b1ee9..953ae9a 100644
--- a/lib/ItemFactory.php
+++ b/lib/ItemFactory.php
@@ -39,19 +39,22 @@ class ItemFactory {
private ItemMapper $itemMapper;
private LoggerInterface $logger;
private IRootFolder $rootFolder;
+ private IAppManager $appManager;
public function __construct(
AppConfig $appConfig,
ActivityManager $activityManager,
ItemMapper $itemMapper,
LoggerInterface $logger,
- IRootFolder $rootFolder
+ IRootFolder $rootFolder,
+ IAppManager $appManager
) {
$this->config = $appConfig;
$this->activityManager = $activityManager;
$this->itemMapper = $itemMapper;
$this->logger = $logger;
$this->rootFolder = $rootFolder;
+ $this->appManager = $appManager;
}
public function newItem(File $file, bool $isCron = false): Item {
@@ -61,6 +64,7 @@ class ItemFactory {
$this->itemMapper,
$this->logger,
$this->rootFolder,
+ $this->appManager,
$file,
$isCron
);
diff --git a/lib/Status.php b/lib/Status.php
index d1077cd..ce39b13 100644
--- a/lib/Status.php
+++ b/lib/Status.php
@@ -42,12 +42,6 @@ class Status {
protected RuleMapper $ruleMapper;
protected LoggerInterface $logger;
- /**
- * Status constructor.
- *
- * @param RuleMapper $ruleMapper
- * @param ILogger $logger
- */
public function __construct(RuleMapper $ruleMapper, LoggerInterface $logger) {
$this->ruleMapper = $ruleMapper;
$this->logger = $logger;