Passed
Branch master (980dcd)
by Burak
12:58 queued 58s
created
Category
app/Providers/Project/ContactServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function register()
17 17
     {
18
-        $this->app->bind(ContactServiceInterface::class, function ($app) {
18
+        $this->app->bind(ContactServiceInterface::class, function($app) {
19 19
             return new ContactService();
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
app/Providers/Project/MessageServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function register()
17 17
     {
18
-        $this->app->bind(MessageServiceInterface::class, function ($app) {
18
+        $this->app->bind(MessageServiceInterface::class, function($app) {
19 19
             return new MessageService();
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
app/Providers/Project/LoginServiceProvider.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
      */
17 17
     public function register()
18 18
     {
19
-        $this->app->bind(LoginServiceInterface::class, function ($app) {
19
+        $this->app->bind(LoginServiceInterface::class, function($app) {
20 20
             return new LoginService(
21 21
                 $app->make(ClientRepository::class)
22 22
             );
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        Broadcast::routes(['middleware' => ['auth:api']]);
17
+        Broadcast::routes([ 'middleware' => [ 'auth:api' ] ]);
18 18
 
19 19
         require base_path('routes/channels.php');
20 20
     }
Please login to merge, or discard this patch.
app/Providers/JetstreamServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     protected function configurePermissions()
39 39
     {
40
-        Jetstream::defaultApiTokenPermissions(['read']);
40
+        Jetstream::defaultApiTokenPermissions([ 'read' ]);
41 41
 
42 42
         Jetstream::permissions([
43 43
             'create',
Please login to merge, or discard this patch.
app/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $this->hideSensitiveRequestDetails();
22 22
 
23
-        Telescope::filter(function (IncomingEntry $entry) {
23
+        Telescope::filter(function(IncomingEntry $entry) {
24 24
             if ($this->app->environment('local')) {
25 25
                 return true;
26 26
             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             return;
45 45
         }
46 46
 
47
-        Telescope::hideRequestParameters(['_token']);
47
+        Telescope::hideRequestParameters([ '_token' ]);
48 48
 
49 49
         Telescope::hideRequestHeaders([
50 50
             'cookie',
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
      */
63 63
     protected function gate()
64 64
     {
65
-        Gate::define('viewTelescope', function ($user) {
65
+        Gate::define('viewTelescope', function($user) {
66 66
             $mails = explode(',', config('telescope.mail_addresses'));
67 67
 
68
-            return in_array($user->email, $mails ?? []);
68
+            return in_array($user->email, $mails ?? [ ]);
69 69
         });
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
app/Actions/Fortify/PasswordValidationRules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
      */
14 14
     protected function passwordRules()
15 15
     {
16
-        return ['required', 'string', new Password, 'confirmed'];
16
+        return [ 'required', 'string', new Password, 'confirmed' ];
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
app/Actions/Fortify/UpdateUserPassword.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
     public function update($user, array $input)
21 21
     {
22 22
         Validator::make($input, [
23
-            'current_password' => ['required', 'string'],
23
+            'current_password' => [ 'required', 'string' ],
24 24
             'password' => $this->passwordRules(),
25
-        ])->after(function ($validator) use ($user, $input) {
26
-            if (! Hash::check($input['current_password'], $user->password)) {
25
+        ])->after(function($validator) use ($user, $input) {
26
+            if (!Hash::check($input[ 'current_password' ], $user->password)) {
27 27
                 $validator->errors()->add('current_password', __('The provided password does not match your current password.'));
28 28
             }
29 29
         })->validateWithBag('updatePassword');
30 30
 
31 31
         $user->forceFill([
32
-            'password' => Hash::make($input['password']),
32
+            'password' => Hash::make($input[ 'password' ]),
33 33
         ])->save();
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
app/Actions/Fortify/CreateNewUser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@
 block discarded – undo
20 20
     public function create(array $input)
21 21
     {
22 22
         Validator::make($input, [
23
-            'name' => ['required', 'string', 'max:255'],
24
-            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
23
+            'name' => [ 'required', 'string', 'max:255' ],
24
+            'email' => [ 'required', 'string', 'email', 'max:255', 'unique:users' ],
25 25
             'password' => $this->passwordRules(),
26 26
         ])->validate();
27 27
 
28 28
         return User::create([
29
-            'name' => $input['name'],
30
-            'email' => $input['email'],
31
-            'password' => Hash::make($input['password']),
29
+            'name' => $input[ 'name' ],
30
+            'email' => $input[ 'email' ],
31
+            'password' => Hash::make($input[ 'password' ]),
32 32
         ]);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.