Skip to content

Commit 5eb96b4

Browse files
authored
Merge pull request #856 from codeigniter4/datamweb-patch-1
docs: remove space from code
2 parents ccb0dc1 + b77aaf8 commit 5eb96b4

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

docs/addons/jwt.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ To use JWT Authentication, you need additional setup and configuration.
5454

5555
You need to add the following constants:
5656
```php
57-
public const RECORD_LOGIN_ATTEMPT_NONE = 0; // Do not record at all
58-
public const RECORD_LOGIN_ATTEMPT_FAILURE = 1; // Record only failures
59-
public const RECORD_LOGIN_ATTEMPT_ALL = 2; // Record all login attempts
57+
public const RECORD_LOGIN_ATTEMPT_NONE = 0; // Do not record at all
58+
public const RECORD_LOGIN_ATTEMPT_FAILURE = 1; // Record only failures
59+
public const RECORD_LOGIN_ATTEMPT_ALL = 2; // Record all login attempts
6060
```
6161

6262
You need to add JWT Authenticator:
@@ -65,20 +65,20 @@ To use JWT Authentication, you need additional setup and configuration.
6565

6666
// ...
6767

68-
public array $authenticators = [
69-
'tokens' => AccessTokens::class,
70-
'session' => Session::class,
71-
'jwt' => JWT::class,
72-
];
68+
public array $authenticators = [
69+
'tokens' => AccessTokens::class,
70+
'session' => Session::class,
71+
'jwt' => JWT::class,
72+
];
7373
```
7474

7575
If you want to use JWT Authenticator in Authentication Chain, add `jwt`:
7676
```php
77-
public array $authenticationChain = [
78-
'session',
79-
'tokens',
80-
'jwt'
81-
];
77+
public array $authenticationChain = [
78+
'session',
79+
'tokens',
80+
'jwt'
81+
];
8282
```
8383

8484
## Configuration
@@ -95,9 +95,9 @@ Set the default payload items to the property `$defaultClaims`.
9595

9696
E.g.:
9797
```php
98-
public array $defaultClaims = [
99-
'iss' => 'https://codeigniter.com/',
100-
];
98+
public array $defaultClaims = [
99+
'iss' => 'https://codeigniter.com/',
100+
];
101101
```
102102

103103
The default claims will be included in all tokens issued by Shield.

docs/references/authentication/auth_actions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ $routes->post('auth/a/verify', 'ActionController::verify');
4545
Views for all of these pages are defined in the `Auth` config file, with the `$views` array.
4646

4747
```php
48-
public $views = [
49-
'action_email_2fa' => '\CodeIgniter\Shield\Views\email_2fa_show',
50-
'action_email_2fa_verify' => '\CodeIgniter\Shield\Views\email_2fa_verify',
51-
'action_email_2fa_email' => '\CodeIgniter\Shield\Views\Email\email_2fa_email',
52-
'action_email_activate_show' => '\CodeIgniter\Shield\Views\email_activate_show',
53-
'action_email_activate_email' => '\CodeIgniter\Shield\Views\Email\email_activate_email',
54-
];
48+
public $views = [
49+
'action_email_2fa' => '\CodeIgniter\Shield\Views\email_2fa_show',
50+
'action_email_2fa_verify' => '\CodeIgniter\Shield\Views\email_2fa_verify',
51+
'action_email_2fa_email' => '\CodeIgniter\Shield\Views\Email\email_2fa_email',
52+
'action_email_activate_show' => '\CodeIgniter\Shield\Views\email_activate_show',
53+
'action_email_activate_email' => '\CodeIgniter\Shield\Views\Email\email_activate_email',
54+
];
5555
```
5656

5757
## Defining New Actions

docs/references/authorization.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ around features, like Beta feature access, or used to provide discrete groups of
1212
Groups are defined within the `Shield\Config\AuthGroups` config class.
1313

1414
```php
15-
1615
public array $groups = [
1716
'superadmin' => [
1817
'title' => 'Super Admin',

0 commit comments

Comments
 (0)