mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -08:00
Fixed Implicit array creation is disallowed.
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8a8575bf2d
commit
d95adcae37
|
@ -40,7 +40,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
|
|||
public function via()
|
||||
{
|
||||
|
||||
$notifyBy[] = 'mail';
|
||||
$notifyBy = ['mail'];
|
||||
|
||||
return $notifyBy;
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class AcceptanceAssetDeclinedNotification extends Notification
|
|||
*/
|
||||
public function via($notifiable)
|
||||
{
|
||||
$notifyBy[] = 'mail';
|
||||
$notifyBy = ['mail'];
|
||||
|
||||
return $notifyBy;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class InventoryAlert extends Notification
|
|||
*/
|
||||
public function via()
|
||||
{
|
||||
$notifyBy[] = 'mail';
|
||||
$notifyBy = ['mail'];
|
||||
|
||||
return $notifyBy;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue