Skip to content

Commit 5b93f4a

Browse files
committed
♻️ ajout de laravel pint
1 parent 62d7b1d commit 5b93f4a

Some content is hidden

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

63 files changed

+528
-1115
lines changed

.php-cs-fixer.php

Lines changed: 0 additions & 150 deletions
This file was deleted.

app/Actions/Fortify/CreateNewUser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class CreateNewUser implements CreatesNewUsers
1616
/**
1717
* Validate and create a newly registered user.
1818
*
19-
* @param array $input
19+
* @param array $input
2020
* @return \App\Models\User
21+
*
2122
* @throws \Illuminate\Validation\ValidationException
2223
*/
2324
public function create(array $input): User

app/Actions/Fortify/ResetUserPassword.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ class ResetUserPassword implements ResetsUserPasswords
1313
/**
1414
* Validate and reset the user's forgotten password.
1515
*
16-
* @param mixed $user
17-
* @param array $input
16+
* @param mixed $user
17+
* @param array $input
1818
* @return void
19+
*
1920
* @throws \Illuminate\Validation\ValidationException
2021
*/
2122
public function reset($user, array $input)

app/Actions/Fortify/UpdateUserPassword.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ class UpdateUserPassword implements UpdatesUserPasswords
1313
/**
1414
* Validate and update the user's password.
1515
*
16-
* @param mixed $user
17-
* @param array $input
16+
* @param mixed $user
17+
* @param array $input
1818
* @return void
19+
*
1920
* @throws \Illuminate\Validation\ValidationException
2021
*/
2122
public function update($user, array $input)
@@ -24,7 +25,7 @@ public function update($user, array $input)
2425
'current_password' => ['required', 'string'],
2526
'password' => $this->passwordRules(),
2627
])->after(function ($validator) use ($user, $input) {
27-
if (!isset($input['current_password']) || !Hash::check($input['current_password'], $user->password)) {
28+
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
2829
$validator->errors()->add('current_password', __('Le mot de passe fourni ne correspond pas à votre mot de passe actuel.'));
2930
}
3031
})->validateWithBag('updatePassword');

app/Actions/Fortify/UpdateUserProfileInformation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
1212
/**
1313
* Validate and update the given user's profile information.
1414
*
15-
* @param mixed $user
16-
* @param array $input
15+
* @param mixed $user
16+
* @param array $input
1717
* @return void
18+
*
1819
* @throws \Illuminate\Validation\ValidationException
1920
*/
2021
public function update($user, array $input)

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function schedule(Schedule $schedule)
4040
*/
4141
protected function commands()
4242
{
43-
$this->load(__DIR__ . '/Commands');
43+
$this->load(__DIR__.'/Commands');
4444

4545
require base_path('routes/console.php');
4646
}

app/Filters/AbstractFilters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(public Request $request)
1818
/**
1919
* Get all filters and make a new instance.
2020
*
21-
* @param Builder $builder
21+
* @param Builder $builder
2222
* @return Builder
2323
*/
2424
public function filter(Builder $builder): Builder
@@ -33,7 +33,7 @@ public function filter(Builder $builder): Builder
3333
/**
3434
* Add Filters to current filter class.
3535
*
36-
* @param array $filters
36+
* @param array $filters
3737
* @return $this
3838
*/
3939
public function add(array $filters): self
@@ -46,7 +46,7 @@ public function add(array $filters): self
4646
/**
4747
* Get the Filter instance Class.
4848
*
49-
* @param $filter
49+
* @param $filter
5050
* @return mixed
5151
*/
5252
public function resolverFilter($filter)

app/Http/Controllers/ArticlesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function show(Article $article)
2727

2828
views($article)->record();
2929

30-
$article = Cache::remember('post-' . $article->id, now()->addHour(), fn () => $article);
30+
$article = Cache::remember('post-'.$article->id, now()->addHour(), fn () => $article);
3131

3232
abort_unless(
3333
$article->isPublished() || ($user && $article->isAuthoredBy($user)) || ($user && $user->hasAnyRole(['admin', 'moderator'])),

app/Http/Controllers/Cpanel/DashboardController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __invoke()
1515
$latestArticles = Cache::remember('last-posts', now()->addHour(), fn () => Article::latest()->limit(2)->get());
1616

1717
return view('cpanel.dashboard', [
18-
'latestArticles' => $latestArticles,
18+
'latestArticles' => $latestArticles,
1919
'users' => $users,
2020
]);
2121
}

app/Http/Controllers/HomeController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function slack(Request $request)
6060
try {
6161
$client->request(
6262
'POST',
63-
env('SLACK_TEAM_URL') . '/api/users.admin.invite?t='
64-
. time() . '&email=' . $email . '&token=' . env('SLACK_API_TOKEN')
65-
. '&set_active=true&_attempts=1'
63+
env('SLACK_TEAM_URL').'/api/users.admin.invite?t='
64+
.time().'&email='.$email.'&token='.env('SLACK_API_TOKEN')
65+
.'&set_active=true&_attempts=1'
6666
);
6767

6868
session()->flash('status', "Une invitation vous a été envoyé à votre courrier pour rejoindre l'espace de travail {$team}.");

0 commit comments

Comments
 (0)