diff --git a/lib/Activity/Provider.php b/lib/Activity/Provider.php
index 30e2a591..efb88e9b 100644
--- a/lib/Activity/Provider.php
+++ b/lib/Activity/Provider.php
@@ -29,7 +29,6 @@ public function __construct(IURLGenerator $urlGenerator) {
$this->urlGenerator = $urlGenerator;
}
- #[\Override]
public function parse($language, IEvent $event, ?IEvent $previousEvent = null): IEvent {
if ($event->getApp() !== Application::APP_ID || $event->getType() !== self::TYPE_VIRUS_DETECTED) {
throw new InvalidArgumentException();
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index e1fedb45..c4aeaeb5 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -49,7 +49,6 @@ public function __construct() {
* @param IRegistrationContext $context
* @return void
*/
- #[\Override]
public function register(IRegistrationContext $context): void {
require_once file_exists(__DIR__ . '/../../vendor/scoper-autoload.php')
? __DIR__ . '/../../vendor/scoper-autoload.php'
@@ -74,7 +73,6 @@ public function register(IRegistrationContext $context): void {
FileEventsListener::register($context);
}
- #[\Override]
public function boot(IBootContext $context): void {
}
}
diff --git a/lib/BackgroundJobs/ScanJob.php b/lib/BackgroundJobs/ScanJob.php
index daa90877..6b281d9b 100644
--- a/lib/BackgroundJobs/ScanJob.php
+++ b/lib/BackgroundJobs/ScanJob.php
@@ -33,7 +33,6 @@ public function __construct(ITimeFactory $time, ScanService $scanService, IAppCo
* @return void
* @throws Exception if the database platform is not supported
*/
- #[\Override]
protected function run($argument): void {
$autoScan = $this->appConfig->getValueBool(Application::APP_ID, 'autoScanFiles');
if (!$autoScan) {
diff --git a/lib/BackgroundJobs/TagUnscannedJob.php b/lib/BackgroundJobs/TagUnscannedJob.php
index 250d3553..317ddc88 100644
--- a/lib/BackgroundJobs/TagUnscannedJob.php
+++ b/lib/BackgroundJobs/TagUnscannedJob.php
@@ -29,7 +29,6 @@ public function __construct(ITimeFactory $time, TagUnscannedService $tagUnscanne
* @return void
* @throws Exception if the database platform is not supported
*/
- #[\Override]
protected function run($argument): void {
$this->tagUnscannedService->run();
}
diff --git a/lib/Command/GetTagIdCommand.php b/lib/Command/GetTagIdCommand.php
index 1cde263f..793e8b0f 100644
--- a/lib/Command/GetTagIdCommand.php
+++ b/lib/Command/GetTagIdCommand.php
@@ -30,7 +30,6 @@ public function __construct(TagService $tagService, LoggerInterface $logger) {
/**
* @return void
*/
- #[\Override]
protected function configure(): void {
$this->setName('gdatavaas:get-tag-id');
$this->setDescription('Gets the ID of a tag');
@@ -39,7 +38,6 @@ protected function configure(): void {
);
}
- #[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {
$logger = new ConsoleCommandLogger($this->logger, $output);
$tagName = $input->getArgument('tag-name');
diff --git a/lib/Command/GetTagsForFileCommand.php b/lib/Command/GetTagsForFileCommand.php
index f0d9a5c6..68bc2095 100644
--- a/lib/Command/GetTagsForFileCommand.php
+++ b/lib/Command/GetTagsForFileCommand.php
@@ -44,7 +44,6 @@ public function __construct(
/**
* @return void
*/
- #[\Override]
protected function configure(): void {
$this->setName('gdatavaas:get-tags-for-file');
$this->setDescription('get tags for file');
@@ -62,7 +61,6 @@ protected function configure(): void {
* @throws NotFoundException
* @throws NotPermittedException
*/
- #[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {
$logger = new ConsoleCommandLogger($this->logger, $output);
diff --git a/lib/Command/RemoveTagCommand.php b/lib/Command/RemoveTagCommand.php
index 565aaef4..e5f71a66 100644
--- a/lib/Command/RemoveTagCommand.php
+++ b/lib/Command/RemoveTagCommand.php
@@ -30,14 +30,12 @@ public function __construct(TagService $tagService, LoggerInterface $logger) {
/**
* @return void
*/
- #[\Override]
protected function configure(): void {
$this->setName('gdatavaas:remove-tag');
$this->setDescription('deletes a tag');
$this->addArgument(self::TAG_NAME, InputArgument::REQUIRED, 'Tag name want to delete.');
}
- #[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {
$logger = new ConsoleCommandLogger($this->logger, $output);
$tagName = $input->getArgument('tag-name');
diff --git a/lib/Command/ScanCommand.php b/lib/Command/ScanCommand.php
index 5c43a78a..542f130b 100644
--- a/lib/Command/ScanCommand.php
+++ b/lib/Command/ScanCommand.php
@@ -35,7 +35,6 @@ public function __construct(
/**
* @return void
*/
- #[\Override]
protected function configure(): void {
$this->setName('gdatavaas:scan');
$this->setDescription('scan files for malware');
@@ -47,7 +46,6 @@ protected function configure(): void {
* @return int
* @throws Exception
*/
- #[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {
$logger = new ConsoleCommandLogger($this->logger, $output);
$logger->info('scanning files');
diff --git a/lib/Command/TagUnscannedCommand.php b/lib/Command/TagUnscannedCommand.php
index 9a2380d6..21f3fb3b 100644
--- a/lib/Command/TagUnscannedCommand.php
+++ b/lib/Command/TagUnscannedCommand.php
@@ -30,7 +30,6 @@ public function __construct(IAppConfig $appConfig, TagService $tagService, Logge
/**
* @return void
*/
- #[\Override]
protected function configure(): void {
$this->setName('gdatavaas:tag-unscanned');
$this->setDescription('tags all files without tag from this app as unscanned');
@@ -39,7 +38,6 @@ protected function configure(): void {
/**
* @throws Exception
*/
- #[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {
$logger = new ConsoleCommandLogger($this->logger, $output);
$logger->info('tagging files as unscanned');
diff --git a/lib/EventListener/FileEventsListener.php b/lib/EventListener/FileEventsListener.php
index d454c5c7..bea4b60d 100644
--- a/lib/EventListener/FileEventsListener.php
+++ b/lib/EventListener/FileEventsListener.php
@@ -56,7 +56,6 @@ public static function register(IRegistrationContext $context): void {
* @throws LockedException
* @throws Exception
*/
- #[\Override]
public function handle(Event $event): void {
if ($event instanceof NodeWrittenEvent) {
$node = $event->getNode();
diff --git a/lib/Logging/ConsoleCommandLogger.php b/lib/Logging/ConsoleCommandLogger.php
index a63c2b98..c81ebb8d 100644
--- a/lib/Logging/ConsoleCommandLogger.php
+++ b/lib/Logging/ConsoleCommandLogger.php
@@ -24,7 +24,6 @@ public function __construct(LoggerInterface $inner, OutputInterface $consoleOutp
* @param array $context
* @return void
*/
- #[\Override]
public function emergency($message, array $context = []): void {
$this->consoleOutput->writeln("[emergency] $message");
@@ -36,7 +35,6 @@ public function emergency($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function alert($message, array $context = []): void {
$this->consoleOutput->writeln("[alert] $message");
@@ -48,7 +46,6 @@ public function alert($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function critical($message, array $context = []): void {
$this->consoleOutput->writeln("[critical] $message");
@@ -60,7 +57,6 @@ public function critical($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function error($message, array $context = []): void {
$this->consoleOutput->writeln("[error] $message");
@@ -72,7 +68,6 @@ public function error($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function warning($message, array $context = []): void {
$this->consoleOutput->writeln("[warning] $message");
@@ -84,7 +79,6 @@ public function warning($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function notice($message, array $context = []): void {
$this->consoleOutput->writeln("[notice] $message");
@@ -96,7 +90,6 @@ public function notice($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function info($message, array $context = []): void {
$this->consoleOutput->writeln("[info] $message");
@@ -108,7 +101,6 @@ public function info($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function debug($message, array $context = []): void {
if ($this->consoleOutput->getVerbosity() < OutputInterface::VERBOSITY_DEBUG) {
return;
@@ -125,7 +117,6 @@ public function debug($message, array $context = []): void {
* @param array $context
* @return void
*/
- #[\Override]
public function log($level, $message, array $context = []): void {
$this->consoleOutput->writeln("[log] $message");
diff --git a/lib/Settings/VaasAdmin.php b/lib/Settings/VaasAdmin.php
index f3ea696a..301a4e30 100644
--- a/lib/Settings/VaasAdmin.php
+++ b/lib/Settings/VaasAdmin.php
@@ -19,7 +19,6 @@ public function __construct(IAppConfig $config) {
$this->config = $config;
}
- #[\Override]
public function getForm(): TemplateResponse {
$params = [
'username' => $this->config->getValueString(Application::APP_ID, 'username'),
@@ -63,12 +62,10 @@ public function getForm(): TemplateResponse {
return new TemplateResponse(Application::APP_ID, 'admin', $params);
}
- #[\Override]
public function getSection(): string {
return 'vaas';
}
- #[\Override]
public function getPriority(): int {
return 10;
}
diff --git a/lib/Settings/VaasAdminSection.php b/lib/Settings/VaasAdminSection.php
index 98b0920a..b61d1c72 100644
--- a/lib/Settings/VaasAdminSection.php
+++ b/lib/Settings/VaasAdminSection.php
@@ -15,22 +15,18 @@ public function __construct(
) {
}
- #[\Override]
public function getName(): string {
return 'G DATA Antivirus';
}
- #[\Override]
public function getID(): string {
return 'vaas';
}
- #[\Override]
public function getPriority(): int {
return 40;
}
- #[\Override]
public function getIcon(): string {
return $this->urlGenerator->imagePath('gdatavaas', 'gdatalogo.svg');
}
diff --git a/lib/SystemTag/SystemTagObjectMapperWithoutActivityFactory.php b/lib/SystemTag/SystemTagObjectMapperWithoutActivityFactory.php
index 2d5c5e22..f84df07e 100644
--- a/lib/SystemTag/SystemTagObjectMapperWithoutActivityFactory.php
+++ b/lib/SystemTag/SystemTagObjectMapperWithoutActivityFactory.php
@@ -25,33 +25,27 @@ public static function createSilentSystemTagObjectMapper(
private static function createFakeEventDispatcher(): IEventDispatcher {
return new class implements IEventDispatcher {
- #[\Override]
public function addListener(string $eventName, callable $listener, int $priority = 0): void {
// DUMMY
}
- #[\Override]
public function removeListener(string $eventName, callable $listener): void {
// DUMMY
}
- #[\Override]
public function addServiceListener(string $eventName, string $className, int $priority = 0): void {
// DUMMY
}
- #[\Override]
public function hasListeners(string $eventName): bool {
// DUMMY
return false;
}
- #[\Override]
public function dispatch(string $eventName, Event $event): void {
// DUMMY
}
- #[\Override]
public function dispatchTyped(Event $event): void {
// DUMMY
}