Skip to content

Commit 7d5fcc9

Browse files
authored
Merge pull request #70 from dsbilling/shift-106142
2 parents 4c3ce55 + 9dfe622 commit 7d5fcc9

File tree

106 files changed

+1648
-1804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1648
-1804
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ PUSHER_APP_KEY=
4545
PUSHER_APP_SECRET=
4646
PUSHER_APP_CLUSTER=mt1
4747

48+
VITE_APP_NAME="${APP_NAME}"
4849
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
4950
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
5051

app/Actions/Fortify/CreateNewUser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ class CreateNewUser implements CreatesNewUsers
1414

1515
/**
1616
* Validate and create a newly registered user.
17-
*
18-
* @param array $input
19-
* @return \App\Models\User
2017
*/
21-
public function create(array $input)
18+
public function create(array $input): User
2219
{
2320
Validator::make($input, [
2421
'name' => ['required', 'string', 'max:255'],

app/Actions/Fortify/PasswordValidationRules.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ trait PasswordValidationRules
88
{
99
/**
1010
* Get the validation rules used to validate passwords.
11-
*
12-
* @return array
1311
*/
14-
protected function passwordRules()
12+
protected function passwordRules(): array
1513
{
1614
return ['required', 'string', new Password, 'confirmed'];
1715
}

app/Actions/Fortify/ResetUserPassword.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ class ResetUserPassword implements ResetsUserPasswords
1414
* Validate and reset the user's forgotten password.
1515
*
1616
* @param mixed $user
17-
* @param array $input
18-
* @return void
1917
*/
20-
public function reset($user, array $input)
18+
public function reset($user, array $input): void
2119
{
2220
Validator::make($input, [
2321
'password' => $this->passwordRules(),

app/Actions/Fortify/UpdateUserPassword.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ class UpdateUserPassword implements UpdatesUserPasswords
1414
* Validate and update the user's password.
1515
*
1616
* @param mixed $user
17-
* @param array $input
18-
* @return void
1917
*/
20-
public function update($user, array $input)
18+
public function update($user, array $input): void
2119
{
2220
Validator::make($input, [
2321
'current_password' => ['required', 'string'],

app/Actions/Fortify/UpdateUserProfileInformation.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
1313
* Validate and update the given user's profile information.
1414
*
1515
* @param mixed $user
16-
* @param array $input
17-
* @return void
1816
*/
19-
public function update($user, array $input)
17+
public function update($user, array $input): void
2018
{
2119
Validator::make($input, [
2220
'name' => ['required', 'string', 'max:255'],
@@ -43,10 +41,8 @@ public function update($user, array $input)
4341
* Update the given verified user's profile information.
4442
*
4543
* @param mixed $user
46-
* @param array $input
47-
* @return void
4844
*/
49-
protected function updateVerifiedUser($user, array $input)
45+
protected function updateVerifiedUser($user, array $input): void
5046
{
5147
$user->forceFill([
5248
'name' => $input['name'],

app/Actions/Jetstream/DeleteUser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ class DeleteUser implements DeletesUsers
1010
* Delete the given user.
1111
*
1212
* @param mixed $user
13-
* @return void
1413
*/
15-
public function delete($user)
14+
public function delete($user): void
1615
{
1716
$user->deleteProfilePhoto();
1817
$user->tokens->each->delete();

app/Console/Commands/Update.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ class Update extends Command
2323

2424
/**
2525
* Execute the console command.
26-
*
27-
* @return int
2826
*/
29-
public function handle()
27+
public function handle(): int
3028
{
3129
$this->info('Migrating...');
3230
Artisan::call('migrate --force');
3331
$this->info('Sync schedule monitor...');
3432
$this->call('schedule-monitor:sync');
33+
3534
return Command::SUCCESS;
3635
}
3736
}

app/Console/Kernel.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ class Kernel extends ConsoleKernel
1212
{
1313
/**
1414
* Define the application's command schedule.
15-
*
16-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
17-
* @return void
1815
*/
19-
protected function schedule(Schedule $schedule)
16+
protected function schedule(Schedule $schedule): void
2017
{
2118
// Often commands
2219
$schedule->command(RunHealthChecksCommand::class)->everyMinute();
@@ -27,10 +24,8 @@ protected function schedule(Schedule $schedule)
2724

2825
/**
2926
* Register the commands for the application.
30-
*
31-
* @return void
3227
*/
33-
protected function commands()
28+
protected function commands(): void
3429
{
3530
$this->load(__DIR__.'/Commands');
3631

app/Exceptions/Handler.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,6 @@
77

88
class Handler extends ExceptionHandler
99
{
10-
/**
11-
* A list of exception types with their corresponding custom log levels.
12-
*
13-
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
14-
*/
15-
protected $levels = [
16-
//
17-
];
18-
19-
/**
20-
* A list of the exception types that are not reported.
21-
*
22-
* @var array<int, class-string<\Throwable>>
23-
*/
24-
protected $dontReport = [
25-
//
26-
];
27-
2810
/**
2911
* A list of the inputs that are never flashed to the session on validation exceptions.
3012
*
@@ -38,10 +20,8 @@ class Handler extends ExceptionHandler
3820

3921
/**
4022
* Register the exception handling callbacks for the application.
41-
*
42-
* @return void
4323
*/
44-
public function register()
24+
public function register(): void
4525
{
4626
$this->reportable(function (Throwable $e) {
4727
if ($this->shouldReport($e) && app()->bound('sentry')) {

0 commit comments

Comments
 (0)