Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3912460
D175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
777 B
Referenced Files
None
Subscribers
None
D175.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D175: ActionsReport::addAction
Attached
Detach File
Event Timeline
Log In to Comment