Skip to content

Commit 4604d28

Browse files
authored
Merge pull request #1013 from kenjis/update-cs
docs: update coding style
2 parents 4b9b688 + f4148c4 commit 4604d28

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/Authorization/Traits/Authorizable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ private function savePermissions(): void
363363
}
364364

365365
/**
366-
* @phpstan-param 'group'|'permission' $type
367-
* @param GroupModel|PermissionModel $model
366+
* @phpstan-param 'group'|'permission' $type
367+
* @param GroupModel|PermissionModel $model
368368
*/
369369
private function saveGroupsOrPermissions(string $type, $model, array $cache): void
370370
{

src/Controllers/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function loginAction(): RedirectResponse
8484
/**
8585
* Returns the rules that should be used for validation.
8686
*
87-
* @return array<string, array<string, array<string>|string>>
87+
* @return array<string, array<string, array<string>|string>>
8888
* @phpstan-return array<string, array<string, string|list<string>>>
8989
*/
9090
protected function getValidationRules(): array

src/Controllers/MagicLinkController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function recordLoginAttempt(
236236
/**
237237
* Returns the rules that should be used for validation.
238238
*
239-
* @return array<string, array<string, array<string>|string>>
239+
* @return array<string, array<string, array<string>|string>>
240240
* @phpstan-return array<string, array<string, string|list<string>>>
241241
*/
242242
protected function getValidationRules(): array

src/Controllers/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function getUserEntity(): User
169169
/**
170170
* Returns the rules that should be used for validation.
171171
*
172-
* @return array<string, array<string, array<string>|string>>
172+
* @return array<string, array<string, array<string>|string>>
173173
* @phpstan-return array<string, array<string, string|list<string>>>
174174
*/
175175
protected function getValidationRules(): array

src/Models/UserIdentityModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private function checkUserId(User $user): void
105105
* Create an identity with 6 digits code for auth action
106106
*
107107
* @phpstan-param array{type: string, name: string, extra: string} $data
108-
* @param callable $codeGenerator generate secret code
108+
* @param callable $codeGenerator generate secret code
109109
*
110110
* @return string secret
111111
*/

src/Models/UserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function fetchIdentities(array $data): array
116116
* @param array $data Event $data
117117
* @param UserIdentity[] $identities
118118
*
119-
* @return User[] UserId => User object
119+
* @return User[] UserId => User object
120120
* @phpstan-return array<int|string, User> UserId => User object
121121
*/
122122
private function assignIdentities(array $data, array $identities): array

tests/Commands/SetupTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function tearDown(): void
3737
/**
3838
* Set MockInputOutput and user inputs.
3939
*
40-
* @param array<int, string> $inputs User inputs
41-
* @phpstan-param list<string> $inputs
40+
* @param array<int, string> $inputs User inputs
41+
* @phpstan-param list<string> $inputs
4242
*/
4343
private function setMockIo(array $inputs): void
4444
{

tests/Commands/UserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ protected function tearDown(): void
3636
/**
3737
* Set MockInputOutput and user inputs.
3838
*
39-
* @param array<int, string> $inputs User inputs
40-
* @phpstan-param list<string> $inputs
39+
* @param array<int, string> $inputs User inputs
40+
* @phpstan-param list<string> $inputs
4141
*/
4242
private function setMockIo(array $inputs): void
4343
{

0 commit comments

Comments
 (0)