@@ -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 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | public function register() |
40 | 40 | { |
41 | - $this->app->singleton(ResponseFactoryContract::class, static function (Container $container) { |
|
41 | + $this->app->singleton(ResponseFactoryContract::class, static function(Container $container) { |
|
42 | 42 | return $container->make(ResponseFactory::class); |
43 | 43 | }); |
44 | 44 | } |
@@ -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 | } |
@@ -11,11 +11,11 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'name' => ['sometimes', 'string', 'max:191'], |
|
15 | - 'email' => ['sometimes', 'string', 'max:191'], |
|
16 | - 'sort_by' => ['sometimes', 'string', 'in:name,email'], |
|
17 | - 'desc' => ['sometimes', 'boolean'], |
|
18 | - 'per_page' => ['sometimes', 'integer', 'min:1', 'max:100'], |
|
14 | + 'name' => [ 'sometimes', 'string', 'max:191' ], |
|
15 | + 'email' => [ 'sometimes', 'string', 'max:191' ], |
|
16 | + 'sort_by' => [ 'sometimes', 'string', 'in:name,email' ], |
|
17 | + 'desc' => [ 'sometimes', 'boolean' ], |
|
18 | + 'per_page' => [ 'sometimes', 'integer', 'min:1', 'max:100' ], |
|
19 | 19 | ]; |
20 | 20 | } |
21 | 21 | } |
@@ -9,9 +9,9 @@ |
||
9 | 9 | public function rules(): array |
10 | 10 | { |
11 | 11 | return [ |
12 | - 'token' => ['required', 'string'], |
|
13 | - 'email' => ['required', 'string', 'email'], |
|
14 | - 'password' => ['required', 'string', 'min:10', 'max:191', 'confirmed'], |
|
12 | + 'token' => [ 'required', 'string' ], |
|
13 | + 'email' => [ 'required', 'string', 'email' ], |
|
14 | + 'password' => [ 'required', 'string', 'min:10', 'max:191', 'confirmed' ], |
|
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | } |