Skip to content

Commit 6d601fe

Browse files
djaissasbiin
authored andcommitted
chore: add pint (monicahq/chandler#136)
1 parent 45b18e0 commit 6d601fe

File tree

265 files changed

+787
-686
lines changed

Some content is hidden

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

265 files changed

+787
-686
lines changed

app/Console/Commands/SetupDummyAccount.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private function createFirstUsers(): void
113113
{
114114
$this->info('☐ Create first user of the account');
115115

116-
$this->firstUser = (new CreateAccount)->execute([
116+
$this->firstUser = (new CreateAccount())->execute([
117117
'email' => 'admin@admin.com',
118118
'password' => 'admin123',
119119
'first_name' => 'Michael',
@@ -129,7 +129,7 @@ private function createVaults(): void
129129
$this->info('☐ Create vaults');
130130

131131
for ($i = 0; $i < rand(3, 5); $i++) {
132-
(new CreateVault)->execute([
132+
(new CreateVault())->execute([
133133
'account_id' => $this->firstUser->account_id,
134134
'author_id' => $this->firstUser->id,
135135
'type' => Vault::TYPE_PERSONAL,
@@ -148,7 +148,7 @@ private function createContacts(): void
148148
$date = $this->faker->dateTimeThisCentury();
149149
$birthDate = Carbon::parse($date);
150150

151-
$contact = (new CreateContact)->execute([
151+
$contact = (new CreateContact())->execute([
152152
'account_id' => $this->firstUser->account_id,
153153
'author_id' => $this->firstUser->id,
154154
'vault_id' => $vault->id,
@@ -160,7 +160,7 @@ private function createContacts(): void
160160
'listed' => true,
161161
]);
162162

163-
(new CreateContactImportantDate)->execute([
163+
(new CreateContactImportantDate())->execute([
164164
'account_id' => $this->firstUser->account_id,
165165
'author_id' => $this->firstUser->id,
166166
'vault_id' => $vault->id,
@@ -181,7 +181,7 @@ private function createNotes(): void
181181

182182
foreach (Contact::all() as $contact) {
183183
for ($i = 0; $i < 4; $i++) {
184-
(new CreateNote)->execute([
184+
(new CreateNote())->execute([
185185
'account_id' => $this->firstUser->account_id,
186186
'author_id' => $this->firstUser->id,
187187
'vault_id' => $contact->vault_id,
@@ -199,7 +199,7 @@ private function createTasks(): void
199199

200200
foreach (Contact::all() as $contact) {
201201
for ($i = 0; $i < 4; $i++) {
202-
(new CreateContactTask)->execute([
202+
(new CreateContactTask())->execute([
203203
'account_id' => $this->firstUser->account_id,
204204
'author_id' => $this->firstUser->id,
205205
'vault_id' => $contact->vault_id,
@@ -224,7 +224,7 @@ private function createGoals(): void
224224

225225
foreach (Contact::all() as $contact) {
226226
foreach ($goals->take(rand(1, 4)) as $goal) {
227-
$goal = (new CreateGoal)->execute([
227+
$goal = (new CreateGoal())->execute([
228228
'account_id' => $this->firstUser->account_id,
229229
'author_id' => $this->firstUser->id,
230230
'vault_id' => $contact->vault_id,
@@ -238,7 +238,7 @@ private function createGoals(): void
238238
$date = $date->addDays(rand(1, 3));
239239

240240
try {
241-
(new ToggleStreak)->execute([
241+
(new ToggleStreak())->execute([
242242
'account_id' => $this->firstUser->account_id,
243243
'author_id' => $this->firstUser->id,
244244
'vault_id' => $contact->vault_id,

app/Console/Commands/TestReminders.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function handle(): void
5050
)->onQueue('low');
5151
}
5252

53-
(new RescheduleContactReminderForChannel)->execute([
53+
(new RescheduleContactReminderForChannel())->execute([
5454
'contact_reminder_id' => $scheduledReminder->contact_reminder_id,
5555
'user_notification_channel_id' => $scheduledReminder->user_notification_channel_id,
5656
'contact_reminder_scheduled_id' => $scheduledReminder->id,

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Kernel extends ConsoleKernel
1616
*/
1717
protected function schedule(Schedule $schedule)
1818
{
19-
$schedule->job(new ProcessScheduledContactReminders)->everyMinute();
19+
$schedule->job(new ProcessScheduledContactReminders())->everyMinute();
2020
}
2121

2222
/**

app/Http/Controllers/Auth/AcceptInvitationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function store(Request $request)
4545
'password' => $request->input('password'),
4646
];
4747

48-
$user = (new AcceptInvitation)->execute($data);
48+
$user = (new AcceptInvitation())->execute($data);
4949

5050
Auth::login($user);
5151

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function store(Request $request)
4040
'password' => ['required', 'confirmed', Rules\Password::defaults()],
4141
]);
4242

43-
$user = (new CreateAccount)->execute([
43+
$user = (new CreateAccount())->execute([
4444
'first_name' => $request->input('first_name'),
4545
'last_name' => $request->input('last_name'),
4646
'email' => $request->input('email'),

app/Http/Controllers/Controller.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99

1010
class Controller extends BaseController
1111
{
12-
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
12+
use AuthorizesRequests;
13+
use DispatchesJobs;
14+
use ValidatesRequests;
1315
}

app/Jobs/CreateAuditLog.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
class CreateAuditLog implements ShouldQueue
1313
{
14-
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
14+
use Dispatchable;
15+
use InteractsWithQueue;
16+
use Queueable;
17+
use SerializesModels;
1518

1619
/**
1720
* The audit log instance.

app/Jobs/CreateContactLog.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
class CreateContactLog implements ShouldQueue
1313
{
14-
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
14+
use Dispatchable;
15+
use InteractsWithQueue;
16+
use Queueable;
17+
use SerializesModels;
1518

1619
/**
1720
* The audit log instance.

app/Jobs/Notifications/SendEmailNotification.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
class SendEmailNotification implements ShouldQueue
1818
{
19-
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
19+
use Dispatchable;
20+
use InteractsWithQueue;
21+
use Queueable;
22+
use SerializesModels;
2023

2124
public UserNotificationChannel $userNotificationChannel;
2225
public ContactReminder $contactReminder;
@@ -45,7 +48,8 @@ public function handle()
4548
$user = $this->userNotificationChannel->user;
4649

4750
Mail::to($emailAddress)
48-
->queue((new SendReminder($this->contactReminder, $user))
51+
->queue(
52+
(new SendReminder($this->contactReminder, $user))
4953
->onQueue('low')
5054
);
5155

0 commit comments

Comments
 (0)