Skip to content

Commit 66a21a2

Browse files
committed
because of code styles
1 parent 83c5c1b commit 66a21a2

39 files changed

+453
-2953
lines changed

Diff for: .eslintrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
extends: [
3+
"eslint:recommended",
4+
"plugin:vue/vue3-recommended",
5+
"plugin:vue/vue3-essential",
6+
"plugin:vue/vue3-strongly-recommended",
7+
],
8+
rules: {
9+
"no-undef": 0,
10+
"vue/multi-word-component-names": 0,
11+
"vue/no-v-html": 0,
12+
"vue/require-default-prop": 0,
13+
"vue/no-setup-props-destructure": 0,
14+
indent: ["error", 4],
15+
quotes: ["error", "double"],
16+
"object-curly-spacing": ["error", "always"],
17+
semi: ["error", "always"],
18+
"comma-spacing": ["error", { before: false, after: true }],
19+
},
20+
};

Diff for: .eslintrc.js

-146
This file was deleted.

Diff for: app/Http/Controllers/User/TwoFactorSettingsController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public function update(Request $request)
3030
*/
3131
public function setup(Request $request)
3232
{
33-
$google2fa = new Google2FA();
33+
$google2fa = new Google2FA;
3434

3535
$data = [
3636
'manual' => $request->user()->two_factor_code,
3737
'code' => $google2fa->setQrcodeService(
3838
new \PragmaRX\Google2FAQRCode\QRCode\Bacon(
39-
new \BaconQrCode\Renderer\Image\SvgImageBackEnd()
39+
new \BaconQrCode\Renderer\Image\SvgImageBackEnd
4040
)
4141
)->getQRCodeInline(
4242
config('app.name'),

Diff for: app/Models/Concerns/HasSessions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getSessions()
2828

2929
protected function createAgent($session)
3030
{
31-
$request = (new Request())->headers->set('User-Agent', $session->user_agent);
31+
$request = (new Request)->headers->set('User-Agent', $session->user_agent);
3232

3333
return new Parser(null, $request, []);
3434
}

Diff for: app/Models/Concerns/HasTwoFactor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function validateTwoFactorCode()
9090
public function setAndSendTwoFactorForEmail()
9191
{
9292
$this->setTwoFactorForEmail();
93-
$this->notify(new TwoFactorNotification());
93+
$this->notify(new TwoFactorNotification);
9494
}
9595

9696
public function setTwoFactorForEmail()
@@ -124,7 +124,7 @@ public function setTwoFactorForAuthenticator()
124124

125125
public function setAndSendTwoFactorRecoveryCodes()
126126
{
127-
$recovery = new Recovery();
127+
$recovery = new Recovery;
128128
$recoveryCodes = $recovery->toArray();
129129

130130
$this->update([

Diff for: app/Notifications/ResetPassword.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function via($notifiable)
4646
*/
4747
public function toMail($notifiable)
4848
{
49-
return (new MailMessage())
49+
return (new MailMessage)
5050
->line('You are receiving this email because we received a password reset request for your account.')
5151
->action('Reset Password', url('password/reset', $this->token))
5252
->line('If you did not request a password reset, no further action is required.');

Diff for: app/Notifications/StandardEmail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function via($notifiable)
5252
*/
5353
public function toMail($notifiable)
5454
{
55-
return (new MailMessage())
55+
return (new MailMessage)
5656
// ->theme('custom')
5757
->subject($this->subject)
5858
->greeting('Hello '.$this->name)

Diff for: app/Notifications/TwoFactorNotification.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class TwoFactorNotification extends Notification
1515
*
1616
* @return void
1717
*/
18-
public function __construct()
19-
{
20-
}
18+
public function __construct() {}
2119

2220
/**
2321
* Get the notification's delivery channels.
@@ -40,7 +38,7 @@ public function toMail($notifiable): MailMessage
4038
{
4139
$url = route('verification.two-factor');
4240

43-
return (new MailMessage())
41+
return (new MailMessage)
4442
->greeting('Hello '.$notifiable->name)
4543
->line('Your two factor code is: '.$notifiable->two_factor_code)
4644
->action('Verify Here', $url)

Diff for: app/Notifications/TwoFactorRecoveryNotification.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class TwoFactorRecoveryNotification extends Notification
1515
*
1616
* @return void
1717
*/
18-
public function __construct(public $codes)
19-
{
20-
}
18+
public function __construct(public $codes) {}
2119

2220
/**
2321
* Get the notification's delivery channels.
@@ -38,7 +36,7 @@ public function via($notifiable): array
3836
*/
3937
public function toMail($notifiable): MailMessage
4038
{
41-
$message = (new MailMessage())
39+
$message = (new MailMessage)
4240
->greeting('Hello '.$notifiable->name)
4341
->line('Your two factor recovery codes are:');
4442

Diff for: app/Notifications/UserInviteEmail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function toMail($notifiable)
6161
$endpoint = route('user.invites');
6262
}
6363

64-
return (new MailMessage())
64+
return (new MailMessage)
6565
->subject('You’ve Been Invited to Join '.$app)
6666
->greeting('Hello '.$this->user)
6767
->line($this->from->name.' has invited you to join '.$app.'!')

Diff for: app/View/Components/AppNavbar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AppNavbar extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/AppNavbarFluid.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AppNavbarFluid extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/AppNavbarStatic.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AppNavbarStatic extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/AppSidebar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AppSidebar extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/AppSubnav.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AppSubnav extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/Forms/User.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class User extends Component
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Get the view / contents that represent the component.

Diff for: app/View/Components/Forms/UserDeleteAccount.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class UserDeleteAccount extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/GuestNavbar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class GuestNavbar extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

Diff for: app/View/Components/TeamNavbar.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class TeamNavbar extends Component
1111
*
1212
* @return void
1313
*/
14-
public function __construct()
15-
{
16-
}
14+
public function __construct() {}
1715

1816
/**
1917
* Get the view / contents that represent the component.

0 commit comments

Comments
 (0)