Page MenuHomeDevCentral

D175.diff
No OneTemporary

D175.diff

diff --git a/app/Actions/ActionsReport.php b/app/Actions/ActionsReport.php
--- a/app/Actions/ActionsReport.php
+++ b/app/Actions/ActionsReport.php
@@ -61,6 +61,15 @@
}
/**
+ * Adds an action to the list of actions to report
+ *
+ * @param Action $action The action to add
+ */
+ public function addAction (Action $action) {
+ $this->actions[] = $action;
+ }
+
+ /**
* Determines if one of the action has failed.
*
* @return bool
@@ -116,7 +125,7 @@
Event::listen(
'Nasqueron\Notifications\Events\ReportEvent',
function (ReportEvent $event) {
- $this->actions[] = $event->action;
+ $this->addAction($event->action);
}
);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 05:56 (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307595
Default Alt Text
D175.diff (777 B)

Event Timeline