Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi authored and github-actions[bot] committed Aug 29, 2023
1 parent 87482b3 commit 5991b46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/Website/Pages/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class Login extends Page
use WithRateLimiting;

protected static string $view = 'website.pages.login';

#[Rule('required|email')]
public null|string $email = null;
public ?string $email = null;

#[Rule('required')]
public null|string $password = null;
public ?string $password = null;

#[Rule('boolean')]
public bool $remember = false;
Expand All @@ -32,15 +32,15 @@ public function mount()
}
}

public function getBreadcrumbs() : array
public function getBreadcrumbs(): array
{
return [
url('/') => 'Home',
'Login',
];
}

public function login() : ?LoginResponse
public function login(): ?LoginResponse
{
try {
$this->rateLimit(5);
Expand Down
4 changes: 2 additions & 2 deletions app/Website/Pages/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public function mount()
{
//
}
public function getBreadcrumbs() : array

public function getBreadcrumbs(): array
{
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
'format' => [
'date' => 'j F Y',
'time' => 'h:i A',
]
],
],

/*
Expand Down

0 comments on commit 5991b46

Please sign in to comment.