Skip to content

Commit

Permalink
because of code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Aug 20, 2024
1 parent 83c5c1b commit 66a21a2
Show file tree
Hide file tree
Showing 39 changed files with 453 additions and 2,953 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-strongly-recommended",
],
rules: {
"no-undef": 0,
"vue/multi-word-component-names": 0,
"vue/no-v-html": 0,
"vue/require-default-prop": 0,
"vue/no-setup-props-destructure": 0,
indent: ["error", 4],
quotes: ["error", "double"],
"object-curly-spacing": ["error", "always"],
semi: ["error", "always"],
"comma-spacing": ["error", { before: false, after: true }],
},
};
146 changes: 0 additions & 146 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions app/Http/Controllers/User/TwoFactorSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public function update(Request $request)
*/
public function setup(Request $request)
{
$google2fa = new Google2FA();
$google2fa = new Google2FA;

$data = [
'manual' => $request->user()->two_factor_code,
'code' => $google2fa->setQrcodeService(
new \PragmaRX\Google2FAQRCode\QRCode\Bacon(
new \BaconQrCode\Renderer\Image\SvgImageBackEnd()
new \BaconQrCode\Renderer\Image\SvgImageBackEnd
)
)->getQRCodeInline(
config('app.name'),
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Concerns/HasSessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function getSessions()

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

return new Parser(null, $request, []);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Models/Concerns/HasTwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function validateTwoFactorCode()
public function setAndSendTwoFactorForEmail()
{
$this->setTwoFactorForEmail();
$this->notify(new TwoFactorNotification());
$this->notify(new TwoFactorNotification);
}

public function setTwoFactorForEmail()
Expand Down Expand Up @@ -124,7 +124,7 @@ public function setTwoFactorForAuthenticator()

public function setAndSendTwoFactorRecoveryCodes()
{
$recovery = new Recovery();
$recovery = new Recovery;
$recoveryCodes = $recovery->toArray();

$this->update([
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function via($notifiable)
*/
public function toMail($notifiable)
{
return (new MailMessage())
return (new MailMessage)
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', url('password/reset', $this->token))
->line('If you did not request a password reset, no further action is required.');
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/StandardEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function via($notifiable)
*/
public function toMail($notifiable)
{
return (new MailMessage())
return (new MailMessage)
// ->theme('custom')
->subject($this->subject)
->greeting('Hello '.$this->name)
Expand Down
6 changes: 2 additions & 4 deletions app/Notifications/TwoFactorNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class TwoFactorNotification extends Notification
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

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

return (new MailMessage())
return (new MailMessage)
->greeting('Hello '.$notifiable->name)
->line('Your two factor code is: '.$notifiable->two_factor_code)
->action('Verify Here', $url)
Expand Down
6 changes: 2 additions & 4 deletions app/Notifications/TwoFactorRecoveryNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class TwoFactorRecoveryNotification extends Notification
*
* @return void
*/
public function __construct(public $codes)
{
}
public function __construct(public $codes) {}

/**
* Get the notification's delivery channels.
Expand All @@ -38,7 +36,7 @@ public function via($notifiable): array
*/
public function toMail($notifiable): MailMessage
{
$message = (new MailMessage())
$message = (new MailMessage)
->greeting('Hello '.$notifiable->name)
->line('Your two factor recovery codes are:');

Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/UserInviteEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function toMail($notifiable)
$endpoint = route('user.invites');
}

return (new MailMessage())
return (new MailMessage)
->subject('You’ve Been Invited to Join '.$app)
->greeting('Hello '.$this->user)
->line($this->from->name.' has invited you to join '.$app.'!')
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/AppNavbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class AppNavbar extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/AppNavbarFluid.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class AppNavbarFluid extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/AppNavbarStatic.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class AppNavbarStatic extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/AppSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class AppSidebar extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/AppSubnav.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class AppSubnav extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/Forms/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ class User extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/Forms/UserDeleteAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class UserDeleteAccount extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/GuestNavbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class GuestNavbar extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
4 changes: 1 addition & 3 deletions app/View/Components/TeamNavbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class TeamNavbar extends Component
*
* @return void
*/
public function __construct()
{
}
public function __construct() {}

/**
* Get the view / contents that represent the component.
Expand Down
Loading

0 comments on commit 66a21a2

Please sign in to comment.