From 58601e8ebae5dd35ba2f97c343e8b4b03a810a57 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Mon, 26 Aug 2024 10:23:47 +0200 Subject: [PATCH] chore: run composer cs:fix Signed-off-by: Richard Steinmetz --- lib/Command/MigrateU2F.php | 2 +- lib/Provider/WebAuthnProvider.php | 2 +- tests/Unit/Controller/SettingsControllerTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Command/MigrateU2F.php b/lib/Command/MigrateU2F.php index 59b005be..14106797 100644 --- a/lib/Command/MigrateU2F.php +++ b/lib/Command/MigrateU2F.php @@ -82,7 +82,7 @@ public function __construct(U2FMigrator $migrator, } protected function configure(): void { - $this->setName("twofactor_webauthn:migrate-u2f"); + $this->setName('twofactor_webauthn:migrate-u2f'); $this->addOption(self::OPTION_ALL); $this->addOption(self::OPTION_DELETE_U2F_REGISTRATIONS); $this->addArgument(self::ARGUMENT_USER_ID, InputArgument::OPTIONAL | InputArgument::IS_ARRAY); diff --git a/lib/Provider/WebAuthnProvider.php b/lib/Provider/WebAuthnProvider.php index 04fe83f6..75b48a88 100644 --- a/lib/Provider/WebAuthnProvider.php +++ b/lib/Provider/WebAuthnProvider.php @@ -64,7 +64,7 @@ class WebAuthnProvider implements IProvider, IProvidesIcons, IProvidesPersonalSe /** @var IRequest */ private $request; - /** @var ContainerInterface */ + /** @var ContainerInterface */ private $container; public function __construct(IL10N $l10n, diff --git a/tests/Unit/Controller/SettingsControllerTest.php b/tests/Unit/Controller/SettingsControllerTest.php index f8f854af..5a8e01da 100644 --- a/tests/Unit/Controller/SettingsControllerTest.php +++ b/tests/Unit/Controller/SettingsControllerTest.php @@ -92,11 +92,11 @@ public function testFinishRegister(): void { ->method('finishRegister') ->with( self::equalTo($user), - self::equalTo("my key"), + self::equalTo('my key'), self::equalTo($data)) ->willReturn([]); - $resp = $this->controller->finishRegister("my key", $data); + $resp = $this->controller->finishRegister('my key', $data); self::assertEquals(new JSONResponse([]), $resp); }