Fixed Implicit array creation is disallowed.

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-06 12:41:54 -08:00
parent 8a8575bf2d
commit d95adcae37
5 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
public function via()
{
$notifyBy[] = 'mail';
$notifyBy = ['mail'];
return $notifyBy;

View file

@ -38,7 +38,7 @@ class AcceptanceAssetDeclinedNotification extends Notification
*/
public function via($notifiable)
{
$notifyBy[] = 'mail';
$notifyBy = ['mail'];
return $notifyBy;

View file

@ -32,7 +32,7 @@ class InventoryAlert extends Notification
*/
public function via()
{
$notifyBy[] = 'mail';
$notifyBy = ['mail'];
return $notifyBy;
}

View file

@ -40,7 +40,7 @@ class SendUpcomingAuditNotification extends Notification
*/
public function toMail()
{
$message = (new MailMessage)->markdown('notifications.markdown.upcoming-audits',
$message = (new MailMessage())->markdown('notifications.markdown.upcoming-audits',
[
'assets' => $this->assets,
'threshold' => $this->threshold,

View file

@ -44,7 +44,7 @@ class WelcomeNotification extends Notification
*/
public function toMail()
{
return (new MailMessage)
return (new MailMessage())
->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
->markdown('notifications.Welcome', $this->_data);
}