Skip to content

Commit c17af39

Browse files
authored
Apply fixes from StyleCI (#103)
1 parent a18787c commit c17af39

File tree

7 files changed

+25
-13
lines changed

7 files changed

+25
-13
lines changed

config/self-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
'address' => env('SELF_UPDATER_MAIL_FROM_ADDRESS', ''),
123123
'name' => env('SELF_UPDATER_MAIL_FROM_NAME', ''),
124124
],
125-
]
125+
],
126126
],
127127

128128
/*

src/Notifications/BaseNotification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications;
46

src/Notifications/EventHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications;
46

src/Notifications/Notifiable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications;
46

src/Notifications/Notifications/UpdateAvailable.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications\Notifications;
46

5-
use Codedge\Updater\Notifications\BaseNotification;
67
use Codedge\Updater\Events\UpdateAvailable as UpdateAvailableEvent;
8+
use Codedge\Updater\Notifications\BaseNotification;
79
use Illuminate\Notifications\Messages\MailMessage;
810

911
final class UpdateAvailable extends BaseNotification
@@ -17,7 +19,7 @@ public function toMail(): MailMessage
1719
{
1820
return (new MailMessage())
1921
->from(config('self-update.notifications.mail.from.address', config('mail.from.address')), config('self-update.notifications.mail.from.name', config('mail.from.name')))
20-
->subject(config('app.name') . ': Update available');
22+
->subject(config('app.name').': Update available');
2123
}
2224

2325
public function setEvent(UpdateAvailableEvent $event)

src/Notifications/Notifications/UpdateFailed.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications\Notifications;
46

5-
use Codedge\Updater\Notifications\BaseNotification;
67
use Codedge\Updater\Events\UpdateFailed as UpdateFailedEvent;
8+
use Codedge\Updater\Notifications\BaseNotification;
79
use Illuminate\Notifications\Messages\MailMessage;
810

911
final class UpdateFailed extends BaseNotification
@@ -17,7 +19,7 @@ public function toMail(): MailMessage
1719
{
1820
return (new MailMessage())
1921
->from(config('self-update.notifications.mail.from.address', config('mail.from.address')), config('self-update.notifications.mail.from.name', config('mail.from.name')))
20-
->subject(config('app.name') . ': Update failed');
22+
->subject(config('app.name').': Update failed');
2123
}
2224

2325
public function setEvent(UpdateFailedEvent $event)

src/Notifications/Notifications/UpdateSucceeded.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace Codedge\Updater\Notifications\Notifications;
46

5-
use Codedge\Updater\Notifications\BaseNotification;
67
use Codedge\Updater\Events\UpdateSucceeded as UpdateSucceededEvent;
8+
use Codedge\Updater\Notifications\BaseNotification;
79
use Illuminate\Notifications\Messages\MailMessage;
810

911
final class UpdateSucceeded extends BaseNotification
@@ -17,7 +19,7 @@ public function toMail(): MailMessage
1719
{
1820
return (new MailMessage())
1921
->from(config('self-update.notifications.mail.from.address', config('mail.from.address')), config('self-update.notifications.mail.from.name', config('mail.from.name')))
20-
->subject(config('app.name') . ': Update succeeded');
22+
->subject(config('app.name').': Update succeeded');
2123
}
2224

2325
public function setEvent(UpdateSucceededEvent $event)

0 commit comments

Comments
 (0)