Skip to content

Commit f76d45b

Browse files
andrasbacsaigithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6cc86a3 commit f76d45b

Some content is hidden

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

46 files changed

+79
-79
lines changed

app/Console/Commands/Emails.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function handle()
8181
}
8282
set_transanctional_email_settings();
8383

84-
$this->mail = new MailMessage();
84+
$this->mail = new MailMessage;
8585
$this->mail->subject('Test Email');
8686
switch ($type) {
8787
case 'updates':
@@ -107,7 +107,7 @@ public function handle()
107107
$confirmed = confirm('Are you sure?');
108108
if ($confirmed) {
109109
foreach ($emails as $email) {
110-
$this->mail = new MailMessage();
110+
$this->mail = new MailMessage;
111111
$this->mail->subject('One-click Services, Docker Compose support');
112112
$unsubscribeUrl = route('unsubscribe.marketing.emails', [
113113
'token' => encrypt($email),
@@ -118,7 +118,7 @@ public function handle()
118118
}
119119
break;
120120
case 'emails-test':
121-
$this->mail = (new Test())->toMail();
121+
$this->mail = (new Test)->toMail();
122122
$this->sendEmail();
123123
break;
124124
case 'database-backup-statuses-daily':
@@ -224,7 +224,7 @@ public function handle()
224224
// $this->sendEmail();
225225
// break;
226226
case 'waitlist-invitation-link':
227-
$this->mail = new MailMessage();
227+
$this->mail = new MailMessage;
228228
$this->mail->view('emails.waitlist-invitation', [
229229
'loginLink' => 'https://coolify.io',
230230
]);
@@ -241,7 +241,7 @@ public function handle()
241241

242242
break;
243243
case 'realusers-before-trial':
244-
$this->mail = new MailMessage();
244+
$this->mail = new MailMessage;
245245
$this->mail->view('emails.before-trial-conversion');
246246
$this->mail->subject('Trial period has been added for all subscription plans.');
247247
$teams = Team::doesntHave('subscription')->where('id', '!=', 0)->get();
@@ -287,7 +287,7 @@ public function handle()
287287
foreach ($admins as $admin) {
288288
$this->info($admin);
289289
}
290-
$this->mail = new MailMessage();
290+
$this->mail = new MailMessage;
291291
$this->mail->view('emails.server-lost-connection', [
292292
'name' => $server->name,
293293
]);

app/Console/Commands/WaitlistInvite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function send_email()
103103
{
104104
$token = Crypt::encryptString("{$this->next_patient->email}@@@$this->password");
105105
$loginLink = route('auth.link', ['token' => $token]);
106-
$mail = new MailMessage();
106+
$mail = new MailMessage;
107107
$mail->view('emails.waitlist-invitation', [
108108
'loginLink' => $loginLink,
109109
]);

app/Http/Controllers/Api/ApplicationsController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ private function create_application(Request $request, $type)
708708
if ($return instanceof \Illuminate\Http\JsonResponse) {
709709
return $return;
710710
}
711-
$application = new Application();
711+
$application = new Application;
712712
removeUnnecessaryFieldsFromRequest($request);
713713

714714
$application->fill($request->all());
@@ -796,7 +796,7 @@ private function create_application(Request $request, $type)
796796
if (str($gitRepository)->startsWith('http') || str($gitRepository)->contains('github.com')) {
797797
$gitRepository = str($gitRepository)->replace('https://', '')->replace('http://', '')->replace('github.com/', '');
798798
}
799-
$application = new Application();
799+
$application = new Application;
800800
removeUnnecessaryFieldsFromRequest($request);
801801

802802
$application->fill($request->all());
@@ -890,7 +890,7 @@ private function create_application(Request $request, $type)
890890
return response()->json(['message' => 'Private Key not found.'], 404);
891891
}
892892

893-
$application = new Application();
893+
$application = new Application;
894894
removeUnnecessaryFieldsFromRequest($request);
895895

896896
$application->fill($request->all());
@@ -988,7 +988,7 @@ private function create_application(Request $request, $type)
988988
$port = 80;
989989
}
990990

991-
$application = new Application();
991+
$application = new Application;
992992
$application->fill($request->all());
993993
$application->fqdn = $fqdn;
994994
$application->ports_exposes = $port;
@@ -1046,7 +1046,7 @@ private function create_application(Request $request, $type)
10461046
if (! $request->docker_registry_image_tag) {
10471047
$request->offsetSet('docker_registry_image_tag', 'latest');
10481048
}
1049-
$application = new Application();
1049+
$application = new Application;
10501050
removeUnnecessaryFieldsFromRequest($request);
10511051

10521052
$application->fill($request->all());
@@ -1140,7 +1140,7 @@ private function create_application(Request $request, $type)
11401140
// return $this->dispatch('error', "Invalid docker-compose file.\n$isValid");
11411141
// }
11421142

1143-
$service = new Service();
1143+
$service = new Service;
11441144
removeUnnecessaryFieldsFromRequest($request);
11451145
$service->fill($request->all());
11461146

app/Http/Controllers/UploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function upload(Request $request)
2121
$receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
2222

2323
if ($receiver->isUploaded() === false) {
24-
throw new UploadMissingFileException();
24+
throw new UploadMissingFileException;
2525
}
2626

2727
$save = $receiver->receive();

app/Jobs/ApplicationDeploymentJob.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,15 +991,15 @@ private function laravel_finetunes()
991991
$nixpacks_php_root_dir = $this->application->environment_variables_preview->where('key', 'NIXPACKS_PHP_ROOT_DIR')->first();
992992
}
993993
if (! $nixpacks_php_fallback_path) {
994-
$nixpacks_php_fallback_path = new EnvironmentVariable();
994+
$nixpacks_php_fallback_path = new EnvironmentVariable;
995995
$nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH';
996996
$nixpacks_php_fallback_path->value = '/index.php';
997997
$nixpacks_php_fallback_path->is_build_time = false;
998998
$nixpacks_php_fallback_path->application_id = $this->application->id;
999999
$nixpacks_php_fallback_path->save();
10001000
}
10011001
if (! $nixpacks_php_root_dir) {
1002-
$nixpacks_php_root_dir = new EnvironmentVariable();
1002+
$nixpacks_php_root_dir = new EnvironmentVariable;
10031003
$nixpacks_php_root_dir->key = 'NIXPACKS_PHP_ROOT_DIR';
10041004
$nixpacks_php_root_dir->value = '/app/public';
10051005
$nixpacks_php_root_dir->is_build_time = false;
@@ -1273,7 +1273,7 @@ private function deploy_to_additional_destinations()
12731273
continue;
12741274
}
12751275
// ray('Deploying to additional destination: ', $server->name);
1276-
$deployment_uuid = new Cuid2();
1276+
$deployment_uuid = new Cuid2;
12771277
queue_application_deployment(
12781278
deployment_uuid: $deployment_uuid,
12791279
application: $this->application,

app/Jobs/SendConfirmationForWaitlistJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(public string $email, public string $uuid) {}
1919
public function handle()
2020
{
2121
try {
22-
$mail = new MailMessage();
22+
$mail = new MailMessage;
2323
$confirmation_url = base_url().'/webhooks/waitlist/confirm?email='.$this->email.'&confirmation_code='.$this->uuid;
2424
$cancel_url = base_url().'/webhooks/waitlist/cancel?email='.$this->email.'&confirmation_code='.$this->uuid;
2525
$mail->view('emails.waitlist-confirmation',

app/Jobs/SubscriptionInvoiceFailedJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function handle()
2121
{
2222
try {
2323
$session = getStripeCustomerPortalSession($this->team);
24-
$mail = new MailMessage();
24+
$mail = new MailMessage;
2525
$mail->view('emails.subscription-invoice-failed', [
2626
'stripeCustomerPortal' => $session->url,
2727
]);

app/Jobs/SubscriptionTrialEndedJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function handle(): void
2323
{
2424
try {
2525
$session = getStripeCustomerPortalSession($this->team);
26-
$mail = new MailMessage();
26+
$mail = new MailMessage;
2727
$mail->subject('Action required: You trial in Coolify Cloud ended.');
2828
$mail->view('emails.trial-ended', [
2929
'stripeCustomerPortal' => $session->url,

app/Jobs/SubscriptionTrialEndsSoonJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function handle(): void
2323
{
2424
try {
2525
$session = getStripeCustomerPortalSession($this->team);
26-
$mail = new MailMessage();
26+
$mail = new MailMessage;
2727
$mail->subject('You trial in Coolify Cloud ends soon.');
2828
$mail->view('emails.trial-ends-soon', [
2929
'stripeCustomerPortal' => $session->url,

app/Listeners/MaintenanceModeDisabledNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function handle(EventsMaintenanceModeDisabled $event): void
3838
$class = "App\Http\Controllers\Webhook\\".ucfirst(str($endpoint)->before('::')->value());
3939
$method = str($endpoint)->after('::')->value();
4040
try {
41-
$instance = new $class();
41+
$instance = new $class;
4242
$instance->$method($request);
4343
} catch (\Throwable $th) {
4444
ray($th);

0 commit comments

Comments
 (0)