Passed
Push — master ( a50549...138a43 )
by Koen
03:13
created
app/Http/Requests/Api/Auth/LoginRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Responses/ResponseFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
app/Notifications/User/Invitation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Notifications/User/Email/VerifyUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Notifications/User/Email/CantUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Notifications/User/PasswordReset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/SPA/UrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.