Skip to content

Commit 6a3cc59

Browse files
committed
Fix linting
1 parent 3e0f9ad commit 6a3cc59

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

docs/en/authenticators.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ $service->loadAuthenticator('Authentication.Environment', [
442442
]);
443443
```
444444

445-
446445
## Events
447446

448447
There is only one event that is fired by authentication:
@@ -584,7 +583,7 @@ $service->setConfig([
584583
Then in your controller's login method you can use `getLoginRedirect()` to get
585584
the redirect target safely from the query string parameter:
586585

587-
``` php
586+
```php
588587
public function login(): ?\Cake\Http\Response
589588
{
590589
$result = $this->Authentication->getResult();

docs/en/impersonation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ public function revertIdentity(): \Cake\Http\Response
6464

6565
There are a few limitations to impersonation.
6666

67-
1. Your application must be using the `Session` authenticator.
68-
2. You cannot impersonate another user while impersonation is active. Instead
67+
1. Your application must be using the `Session` authenticator.
68+
2. You cannot impersonate another user while impersonation is active. Instead
6969
you must `stopImpersonating()` and then start it again.

docs/en/migration-from-the-authcomponent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ identity based on your authenticators. Usually after logging in,
183183
upon a successful login, change your login action to check the new
184184
identity results:
185185

186-
``` php
186+
```php
187187
public function login(): ?\Cake\Http\Response
188188
{
189189
$result = $this->Authentication->getResult();
@@ -291,7 +291,7 @@ $service->setConfig([
291291
Then in your controller's login method you can use `getLoginRedirect()` to get
292292
the redirect target safely from the query string parameter:
293293

294-
``` php
294+
```php
295295
public function login(): ?\Cake\Http\Response
296296
{
297297
$result = $this->Authentication->getResult();
@@ -317,7 +317,7 @@ If your application uses `AuthComponent`’s hash upgrade
317317
functionality. You can replicate that logic with this plugin by
318318
leveraging the `AuthenticationService`:
319319

320-
``` php
320+
```php
321321
public function login(): ?\Cake\Http\Response
322322
{
323323
$result = $this->Authentication->getResult();

docs/en/password-hashers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Then in your login action you can use the authentication service to
5959
access the `Password` identifier and check if the current user’s
6060
password needs to be upgraded:
6161

62-
``` php
62+
```php
6363
public function login(): ?\Cake\Http\Response
6464
{
6565
$authentication = $this->request->getAttribute('authentication');

docs/en/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Session based authentication requires simulating the User data that
2828
normally would be found in the session. In your test cases you can
2929
define a helper method that lets you 'login':
3030

31-
``` php
31+
```php
3232
protected function login(int $userId = 1): void
3333
{
3434
$user = $this->fetchTable('Users')->get($userId);
@@ -79,7 +79,7 @@ When testing Basic or Digest Authentication, you can add the environment
7979
variables that [PHP creates](https://php.net/manual/en/features.http-auth.php)
8080
automatically:
8181

82-
``` php
82+
```php
8383
public function testGet(): void
8484
{
8585
$this->configRequest([

0 commit comments

Comments
 (0)