Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Activity/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
$this->urlGenerator = $urlGenerator;
}

#[\Override]
public function parse($language, IEvent $event, ?IEvent $previousEvent = null): IEvent {

Check failure on line 32 in lib/Activity/Provider.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Activity/Provider.php:32:2: MissingOverrideAttribute: Method OCA\GDataVaas\Activity\Provider::parse should have the "Override" attribute (see https://psalm.dev/358)
if ($event->getApp() !== Application::APP_ID || $event->getType() !== self::TYPE_VIRUS_DETECTED) {
throw new InvalidArgumentException();
}
Expand Down
2 changes: 0 additions & 2 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
* @param IRegistrationContext $context
* @return void
*/
#[\Override]
public function register(IRegistrationContext $context): void {

Check failure on line 52 in lib/AppInfo/Application.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/AppInfo/Application.php:52:2: MissingOverrideAttribute: Method OCA\GDataVaas\AppInfo\Application::register should have the "Override" attribute (see https://psalm.dev/358)
require_once file_exists(__DIR__ . '/../../vendor/scoper-autoload.php')
? __DIR__ . '/../../vendor/scoper-autoload.php'
: __DIR__ . '/../../vendor/autoload.php';
Expand All @@ -74,7 +73,6 @@
FileEventsListener::register($context);
}

#[\Override]
public function boot(IBootContext $context): void {

Check failure on line 76 in lib/AppInfo/Application.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/AppInfo/Application.php:76:2: MissingOverrideAttribute: Method OCA\GDataVaas\AppInfo\Application::boot should have the "Override" attribute (see https://psalm.dev/358)
}
}
1 change: 0 additions & 1 deletion lib/BackgroundJobs/ScanJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
* @return void
* @throws Exception if the database platform is not supported
*/
#[\Override]
protected function run($argument): void {

Check failure on line 36 in lib/BackgroundJobs/ScanJob.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/BackgroundJobs/ScanJob.php:36:2: MissingOverrideAttribute: Method OCA\GDataVaas\BackgroundJobs\ScanJob::run should have the "Override" attribute (see https://psalm.dev/358)
$autoScan = $this->appConfig->getValueBool(Application::APP_ID, 'autoScanFiles');
if (!$autoScan) {
return;
Expand Down
1 change: 0 additions & 1 deletion lib/BackgroundJobs/TagUnscannedJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
* @return void
* @throws Exception if the database platform is not supported
*/
#[\Override]
protected function run($argument): void {

Check failure on line 32 in lib/BackgroundJobs/TagUnscannedJob.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/BackgroundJobs/TagUnscannedJob.php:32:2: MissingOverrideAttribute: Method OCA\GDataVaas\BackgroundJobs\TagUnscannedJob::run should have the "Override" attribute (see https://psalm.dev/358)
$this->tagUnscannedService->run();
}
}
2 changes: 0 additions & 2 deletions lib/Command/GetTagIdCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
/**
* @return void
*/
#[\Override]
protected function configure(): void {

Check failure on line 33 in lib/Command/GetTagIdCommand.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Command/GetTagIdCommand.php:33:2: MissingOverrideAttribute: Method OCA\GDataVaas\Command\GetTagIdCommand::configure should have the "Override" attribute (see https://psalm.dev/358)
$this->setName('gdatavaas:get-tag-id');
$this->setDescription('Gets the ID of a tag');
$this->addArgument(
Expand All @@ -39,8 +38,7 @@
);
}

#[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {

Check failure on line 41 in lib/Command/GetTagIdCommand.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Command/GetTagIdCommand.php:41:2: MissingOverrideAttribute: Method OCA\GDataVaas\Command\GetTagIdCommand::execute should have the "Override" attribute (see https://psalm.dev/358)
$logger = new ConsoleCommandLogger($this->logger, $output);
$tagName = $input->getArgument('tag-name');
try {
Expand Down
2 changes: 0 additions & 2 deletions lib/Command/GetTagsForFileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
/**
* @return void
*/
#[\Override]
protected function configure(): void {

Check failure on line 47 in lib/Command/GetTagsForFileCommand.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Command/GetTagsForFileCommand.php:47:2: MissingOverrideAttribute: Method OCA\GDataVaas\Command\GetTagsForFileCommand::configure should have the "Override" attribute (see https://psalm.dev/358)
$this->setName('gdatavaas:get-tags-for-file');
$this->setDescription('get tags for file');

Expand All @@ -62,8 +61,7 @@
* @throws NotFoundException
* @throws NotPermittedException
*/
#[\Override]
protected function execute(InputInterface $input, OutputInterface $output): int {

Check failure on line 64 in lib/Command/GetTagsForFileCommand.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Command/GetTagsForFileCommand.php:64:2: MissingOverrideAttribute: Method OCA\GDataVaas\Command\GetTagsForFileCommand::execute should have the "Override" attribute (see https://psalm.dev/358)
$logger = new ConsoleCommandLogger($this->logger, $output);

$filePath = $input->getArgument('file-path');
Expand Down
2 changes: 0 additions & 2 deletions lib/Command/RemoveTagCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@
/**
* @return void
*/
#[\Override]
protected function configure(): void {

Check failure on line 33 in lib/Command/RemoveTagCommand.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-stable31

MissingOverrideAttribute

lib/Command/RemoveTagCommand.php:33:2: MissingOverrideAttribute: Method OCA\GDataVaas\Command\RemoveTagCommand::configure should have the "Override" attribute (see https://psalm.dev/358)
$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');
Expand Down
2 changes: 0 additions & 2 deletions lib/Command/ScanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function __construct(
/**
* @return void
*/
#[\Override]
protected function configure(): void {
$this->setName('gdatavaas:scan');
$this->setDescription('scan files for malware');
Expand All @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions lib/Command/TagUnscannedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down
1 change: 0 additions & 1 deletion lib/EventListener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
9 changes: 0 additions & 9 deletions lib/Logging/ConsoleCommandLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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("<error>[emergency] $message</error>");

Expand All @@ -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("<error>[alert] $message</error>");

Expand All @@ -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("<error>[critical] $message</error>");

Expand All @@ -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>[error] $message</error>");

Expand All @@ -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");

Expand All @@ -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("<info>[notice] $message</info>");

Expand All @@ -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>[info] $message</info>");

Expand All @@ -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;
Expand All @@ -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("<info>[log] $message</info>");

Expand Down
3 changes: 0 additions & 3 deletions lib/Settings/VaasAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 0 additions & 4 deletions lib/Settings/VaasAdminSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
6 changes: 0 additions & 6 deletions lib/SystemTag/SystemTagObjectMapperWithoutActivityFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading