mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 00:54:07 -08:00
Fixed Implicit array creation is disallowed.
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
14e95c47e1
commit
b25676c96b
|
@ -40,7 +40,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
|
||||||
public function via()
|
public function via()
|
||||||
{
|
{
|
||||||
|
|
||||||
$notifyBy[] = 'mail';
|
$notifyBy = ['mail'];
|
||||||
|
|
||||||
return $notifyBy;
|
return $notifyBy;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class AcceptanceAssetDeclinedNotification extends Notification
|
||||||
*/
|
*/
|
||||||
public function via($notifiable)
|
public function via($notifiable)
|
||||||
{
|
{
|
||||||
$notifyBy[] = 'mail';
|
$notifyBy = ['mail'];
|
||||||
|
|
||||||
return $notifyBy;
|
return $notifyBy;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ class InventoryAlert extends Notification
|
||||||
*/
|
*/
|
||||||
public function via()
|
public function via()
|
||||||
{
|
{
|
||||||
$notifyBy[] = 'mail';
|
$notifyBy = ['mail'];
|
||||||
|
|
||||||
return $notifyBy;
|
return $notifyBy;
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ class SendUpcomingAuditNotification extends Notification
|
||||||
*/
|
*/
|
||||||
public function toMail()
|
public function toMail()
|
||||||
{
|
{
|
||||||
$message = (new MailMessage)->markdown('notifications.markdown.upcoming-audits',
|
$message = (new MailMessage())->markdown('notifications.markdown.upcoming-audits',
|
||||||
[
|
[
|
||||||
'assets' => $this->assets,
|
'assets' => $this->assets,
|
||||||
'threshold' => $this->threshold,
|
'threshold' => $this->threshold,
|
||||||
|
|
|
@ -44,7 +44,7 @@ class WelcomeNotification extends Notification
|
||||||
*/
|
*/
|
||||||
public function toMail()
|
public function toMail()
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage())
|
||||||
->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
|
->subject(trans('mail.welcome', ['name' => $this->_data['first_name'].' '.$this->_data['last_name']]))
|
||||||
->markdown('notifications.Welcome', $this->_data);
|
->markdown('notifications.Welcome', $this->_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue