Fix some nulls and the notifications on the handlers

This commit is contained in:
Joseph Cohen 2015-11-22 00:18:09 -06:00
parent 24d09ccefd
commit a593dabeb9
4 changed files with 8 additions and 4 deletions

View File

@ -84,6 +84,8 @@ class ReportIncidentCommandHandler
]);
}
$incident->notify = (bool) $command->notify;
event(new IncidentWasReportedEvent($incident));
return $incident;

View File

@ -56,6 +56,8 @@ class ReportMaintenanceCommandHandler
'visible' => 1,
]);
$maintenanceEvent->notify = (bool) $command->notify;
event(new MaintenanceWasScheduledEvent($maintenanceEvent));
return $maintenanceEvent;

View File

@ -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();
}

View File

@ -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();
}