@@ -11,8 +11,8 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'email' => ['required', 'string', 'email'], |
|
15 | - 'password' => ['required', 'string'], |
|
14 | + 'email' => [ 'required', 'string', 'email' ], |
|
15 | + 'password' => [ 'required', 'string' ], |
|
16 | 16 | ]; |
17 | 17 | } |
18 | 18 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * @inheritDoc |
16 | 16 | */ |
17 | - public function make(string $content = '', int $status = Response::HTTP_OK, array $headers = []): Response |
|
17 | + public function make(string $content = '', int $status = Response::HTTP_OK, array $headers = [ ]): Response |
|
18 | 18 | { |
19 | 19 | return new Response($content, $status, $headers); |
20 | 20 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * @inheritDoc |
24 | 24 | */ |
25 | - public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = []): Response |
|
25 | + public function noContent(int $status = Response::HTTP_NO_CONTENT, array $headers = [ ]): Response |
|
26 | 26 | { |
27 | 27 | return $this->make('', $status, $headers); |
28 | 28 | } |
@@ -31,13 +31,13 @@ discard block |
||
31 | 31 | * @inheritDoc |
32 | 32 | */ |
33 | 33 | public function json( |
34 | - array $data = [], |
|
34 | + array $data = [ ], |
|
35 | 35 | int $status = Response::HTTP_OK, |
36 | - array $headers = [], |
|
36 | + array $headers = [ ], |
|
37 | 37 | int $options = 0 |
38 | 38 | ): JsonResponse { |
39 | - if (! array_key_exists('data', $data)) { |
|
40 | - $data = ['data' => $data]; |
|
39 | + if (!array_key_exists('data', $data)) { |
|
40 | + $data = [ 'data' => $data ]; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return new JsonResponse($data, $status, $headers, $options); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function paginator( |
50 | 50 | LengthAwarePaginator $paginator, |
51 | 51 | int $status = Response::HTTP_OK, |
52 | - array $headers = [], |
|
52 | + array $headers = [ ], |
|
53 | 53 | int $options = 0 |
54 | 54 | ): JsonResponse { |
55 | 55 | return $this->json([ |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | LengthAwarePaginator $paginator, |
73 | 73 | callable $map, |
74 | 74 | int $status = Response::HTTP_OK, |
75 | - array $headers = [], |
|
75 | + array $headers = [ ], |
|
76 | 76 | int $options = 0 |
77 | 77 | ): JsonResponse { |
78 | 78 | $paginator->setCollection($paginator->getCollection()->map($map)); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function via(): array |
24 | 24 | { |
25 | - return ['mail']; |
|
25 | + return [ 'mail' ]; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function toMail(User $user): MailMessage |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | ->subject(Lang::get('Account Invitation Notification')) |
36 | 36 | ->line(Lang::get('You are receiving this email because an account was created for you.')) |
37 | 37 | ->action(Lang::get('Activate account'), $url) |
38 | - ->line(Lang::get('This invitation email will expire in :count hours.', ['count' => config('auth.passwords.user-invitations.expire') / 60])); |
|
38 | + ->line(Lang::get('This invitation email will expire in :count hours.', [ 'count' => config('auth.passwords.user-invitations.expire') / 60 ])); |
|
39 | 39 | } |
40 | 40 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | public function via(): array |
23 | 23 | { |
24 | - return ['mail']; |
|
24 | + return [ 'mail' ]; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function toMail(User $user): MailMessage |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | public function via(): array |
14 | 14 | { |
15 | - return ['mail']; |
|
15 | + return [ 'mail' ]; |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function toMail(User $user): MailMessage |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | public function via(): array |
25 | 25 | { |
26 | - return ['mail']; |
|
26 | + return [ 'mail' ]; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | public function toMail(User $user): MailMessage |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | ->subject(Lang::get('Reset Password Notification')) |
37 | 37 | ->line(Lang::get('You are receiving this email because we received a password reset request for your account.')) |
38 | 38 | ->action(Lang::get('Reset Password'), $url) |
39 | - ->line(Lang::get('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.user-invitations.expire')])) |
|
39 | + ->line(Lang::get('This password reset link will expire in :count minutes.', [ 'count' => config('auth.passwords.user-invitations.expire') ])) |
|
40 | 40 | ->line(Lang::get('If you did not request a password reset, no further action is required.')); |
41 | 41 | } |
42 | 42 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $this->baseUrl = $baseUrl; |
17 | 17 | } |
18 | 18 | |
19 | - public function to(string $path, array $query = []): string |
|
19 | + public function to(string $path, array $query = [ ]): string |
|
20 | 20 | { |
21 | 21 | $query = array_filter($query); |
22 | 22 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - protected $policies = []; |
|
21 | + protected $policies = [ ]; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Register any authentication / authorization services. |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | /** @var AuthManager $authManager */ |
42 | 42 | $authManager = $this->app->make(AuthManager::class); |
43 | 43 | |
44 | - $authManager->viaRequest('spa', static function (Request $request): User { |
|
44 | + $authManager->viaRequest('spa', static function(Request $request): User { |
|
45 | 45 | /** @var UserToken $userToken */ |
46 | 46 | $userToken = UserToken::query() |
47 | 47 | ->with('user') |
48 | 48 | ->where('token', $request->bearerToken()) |
49 | 49 | ->whereNotNull('token') |
50 | - ->firstOr(static function () { |
|
50 | + ->firstOr(static function() { |
|
51 | 51 | throw new AuthenticationException(); |
52 | 52 | }); |
53 | 53 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'email' => ['required', 'string', 'email'], |
|
14 | + 'email' => [ 'required', 'string', 'email' ], |
|
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | } |