Skip to content

A free open source IT asset/license management system

Fixed Implicit array creation is disallowed.

snipeb25676c96b6d
diff --git a/app/Notifications/AcceptanceAssetAcceptedNotification.php b/app/Notifications/AcceptanceAssetAcceptedNotification.php
index c667588dae..93e75df7b3 100644
--- a/app/Notifications/AcceptanceAssetAcceptedNotification.php
+++ b/app/Notifications/AcceptanceAssetAcceptedNotification.php
@@ -40,7 +40,7 @@ class AcceptanceAssetAcceptedNotification extends Notification
public function via()
{
- $notifyBy[] = 'mail';
+ $notifyBy = ['mail'];
return $notifyBy;
diff --git a/app/Notifications/AcceptanceAssetDeclinedNotification.php b/app/Notifications/AcceptanceAssetDeclinedNotification.php
index 9446747353..82a8de9210 100644
--- a/app/Notifications/AcceptanceAssetDeclinedNotification.php
+++ b/app/Notifications/AcceptanceAssetDeclinedNotification.php
@@ -38,7 +38,7 @@ class AcceptanceAssetDeclinedNotification extends Notification
*/
public function via($notifiable)
{
- $notifyBy[] = 'mail';
+ $notifyBy = ['mail'];
return $notifyBy;
diff --git a/app/Notifications/InventoryAlert.php b/app/Notifications/InventoryAlert.php
index ff88b548c0..6d59e3b42a 100644
--- a/app/Notifications/InventoryAlert.php
+++ b/app/Notifications/InventoryAlert.php
@@ -32,7 +32,7 @@ class InventoryAlert extends Notification
*/
public function via()
{
- $notifyBy[] = 'mail';
+ $notifyBy = ['mail'];
return $notifyBy;
}
diff --git a/app/Notifications/SendUpcomingAuditNotification.php b/app/Notifications/SendUpcomingAuditNotification.php
index a883220f2f..a1005494f6 100644
--- a/app/Notifications/SendUpcomingAuditNotification.php
+++ b/app/Notifications/SendUpcomingAuditNotification.php
@@ -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,
diff --git a/app/Notifications/WelcomeNotification.php b/app/Notifications/WelcomeNotification.php
index 639f622188..a5754be4d9 100644
--- a/app/Notifications/WelcomeNotification.php
+++ b/app/Notifications/WelcomeNotification.php
@@ -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);
}