Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 4eeceeb

Browse files
committed
fixed short array CS in comments
1 parent 044760c commit 4eeceeb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Core/User/UserInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface UserInterface
3838
*
3939
* public function getRoles()
4040
* {
41-
* return array('ROLE_USER');
41+
* return ['ROLE_USER'];
4242
* }
4343
*
4444
* Alternatively, the roles might be stored on a ``roles`` property,

Guard/AuthenticatorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ public function supports(Request $request);
4444
*
4545
* For example, for a form login, you might:
4646
*
47-
* return array(
47+
* return [
4848
* 'username' => $request->request->get('_username'),
4949
* 'password' => $request->request->get('_password'),
50-
* );
50+
* ];
5151
*
5252
* Or for an API token that's on a header, you might use:
5353
*
54-
* return array('api_key' => $request->headers->get('X-API-TOKEN'));
54+
* return ['api_key' => $request->headers->get('X-API-TOKEN')];
5555
*
5656
* @param Request $request
5757
*

Guard/GuardAuthenticatorInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ interface GuardAuthenticatorInterface extends AuthenticationEntryPointInterface
4343
* For example, for a form login, you might:
4444
*
4545
* if ($request->request->has('_username')) {
46-
* return array(
46+
* return [
4747
* 'username' => $request->request->get('_username'),
4848
* 'password' => $request->request->get('_password'),
49-
* );
49+
* ];
5050
* } else {
5151
* return;
5252
* }
5353
*
5454
* Or for an API token that's on a header, you might use:
5555
*
56-
* return array('api_key' => $request->headers->get('X-API-TOKEN'));
56+
* return ['api_key' => $request->headers->get('X-API-TOKEN')];
5757
*
5858
* @param Request $request
5959
*

Http/FirewallMapInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface FirewallMapInterface
3030
* If there is no exception listener, the second element of the outer array
3131
* must be null.
3232
*
33-
* @return array of the format array(array(AuthenticationListener), ExceptionListener)
33+
* @return array of the format [[AuthenticationListener], ExceptionListener]
3434
*/
3535
public function getListeners(Request $request);
3636
}

0 commit comments

Comments
 (0)