Fix some nulls and the notifications on the handlers
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user