Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Add trailing comma's
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jun 13, 2024
1 parent 3485d63 commit 65d4109
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Auth/Process/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function process(array &$state): void
if (isset($state['isPassive']) && $state['isPassive'] === true) {
throw new Error\NoPassive(
Constants::STATUS_REQUESTER,
'Unable to enter verification code on passive request.'
'Unable to enter verification code on passive request.',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/OTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function sendCode(Request $request): RedirectResponse
sprintf(
"Message could not be send: HTTP/%d %s",
$response->getStatusCode(),
$response->getReasonPhrase()
$response->getReasonPhrase(),
),
];

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/OTPClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function sendCode(array $state): ResponseInterface
new Template($this->config, 'cmdotcom:message.twig');
$message = Translate::translateSingularGettext(
'{code}
Enter this verification code when asked during the authentication process.'
Enter this verification code when asked during the authentication process.',
);

$options = [
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function sanitizePhoneNumber(string $number, string $defaultRegion = 'NL'
) {
throw new NumberParseException(
NumberParseException::NOT_A_NUMBER,
"The string supplied does not seem to be a valid phone number."
"The string supplied does not seem to be a valid phone number.",
);
}

Expand Down
20 changes: 10 additions & 10 deletions tests/src/Controller/OTPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testEnterCode(): void
'GET',
[
'AuthState' => 'someState',
]
],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down Expand Up @@ -137,7 +137,7 @@ public function testValidateCodeIncorrect(): void
'POST',
[
'otp' => '321',
]
],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down Expand Up @@ -186,7 +186,7 @@ public function testValidateCodeExpired(): void
'POST',
[
'otp' => '123456',
]
],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand All @@ -213,7 +213,7 @@ public static function loadState(string $id, string $stage, bool $allowMissing =
$this->assertTrue($response->isRedirect());
$this->assertStringStartsWith(
'http://localhost/simplesaml/module.php/cmdotcom/promptResend?AuthState=_',
$response->getTargetUrl()
$response->getTargetUrl(),
);
}

Expand Down Expand Up @@ -248,7 +248,7 @@ public function testsendCodeSuccess(): void
$request = Request::create(
'/sendCode?AuthState=someState',
'POST',
[]
[],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down Expand Up @@ -279,7 +279,7 @@ public static function loadState(string $id, string $stage, bool $allowMissing =
$this->assertTrue($response->isRedirect());
$this->assertStringStartsWith(
'http://localhost/simplesaml/module.php/cmdotcom/enterCode?AuthState=_',
$response->getTargetUrl()
$response->getTargetUrl(),
);
}

Expand All @@ -291,7 +291,7 @@ public function testsendCodeFailure(): void
$request = Request::create(
'/sendCode?AuthState=someState',
'POST',
[]
[],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down Expand Up @@ -322,7 +322,7 @@ public static function loadState(string $id, string $stage, bool $allowMissing =
$this->assertTrue($response->isRedirect());
$this->assertStringStartsWith(
'http://localhost/simplesaml/module.php/cmdotcom/promptResend',
$response->getTargetUrl()
$response->getTargetUrl(),
);
}

Expand Down Expand Up @@ -354,7 +354,7 @@ public function testPromptResendExpired(): void
'GET',
[
'AuthState' => 'someState',
]
],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down Expand Up @@ -414,7 +414,7 @@ public function testPromptResendUnknownReason(): void
'GET',
[
'AuthState' => 'someState',
]
],
);

$c = new Controller\OTP(self::$config, self::$session);
Expand Down

0 comments on commit 65d4109

Please sign in to comment.