Tweaked three command handlers

This commit is contained in:
Graham Campbell
2015-11-07 13:21:28 +00:00
parent 1a23d84488
commit dd6a1fa956
3 changed files with 1 additions and 6 deletions
@@ -59,10 +59,7 @@ class ReportIncidentCommandHandler
]);
}
// Notify subscribers.
if ($command->notify) {
event(new IncidentWasReportedEvent($incident));
}
event(new IncidentWasReportedEvent($incident));
return $incident;
}
@@ -39,7 +39,6 @@ class ReportMaintenanceCommandHandler
'visible' => 1,
]);
// Notify subscribers.
event(new MaintenanceWasScheduledEvent($maintenanceEvent));
return $maintenanceEvent;
@@ -49,7 +49,6 @@ class UpdateIncidentCommandHandler
]);
}
// Notify subscribers.
event(new IncidentWasUpdatedEvent($incident));
return $incident;