mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-12 03:25:48 +01:00
Fix some nulls and the notifications on the handlers
This commit is contained in:
parent
24d09ccefd
commit
a593dabeb9
@ -84,6 +84,8 @@ class ReportIncidentCommandHandler
|
||||
]);
|
||||
}
|
||||
|
||||
$incident->notify = (bool) $command->notify;
|
||||
|
||||
event(new IncidentWasReportedEvent($incident));
|
||||
|
||||
return $incident;
|
||||
|
@ -56,6 +56,8 @@ class ReportMaintenanceCommandHandler
|
||||
'visible' => 1,
|
||||
]);
|
||||
|
||||
$maintenanceEvent->notify = (bool) $command->notify;
|
||||
|
||||
event(new MaintenanceWasScheduledEvent($maintenanceEvent));
|
||||
|
||||
return $maintenanceEvent;
|
||||
|
@ -36,7 +36,7 @@ class SignupController extends Controller
|
||||
*/
|
||||
public function getSignup($code = null)
|
||||
{
|
||||
if ($code !== null) {
|
||||
if ($code === null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ class SignupController extends Controller
|
||||
*/
|
||||
public function postSignup($code = null)
|
||||
{
|
||||
if ($code !== null) {
|
||||
if ($code === null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ class SubscribeController extends Controller
|
||||
*/
|
||||
public function getVerify($code = null)
|
||||
{
|
||||
if ($code !== null) {
|
||||
if ($code === null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ class SubscribeController extends Controller
|
||||
*/
|
||||
public function getUnsubscribe($code = null)
|
||||
{
|
||||
if ($code !== null) {
|
||||
if ($code === null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user