Check where consistency
This commit is contained in:
@@ -119,7 +119,7 @@ class ApiController extends AbstractApiController
|
||||
{
|
||||
$templateSlug = Binput::get('slug');
|
||||
|
||||
if ($template = IncidentTemplate::where('slug', $templateSlug)->first()) {
|
||||
if ($template = IncidentTemplate::where('slug', '=', $templateSlug)->first()) {
|
||||
return $template;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ class IncidentController extends Controller
|
||||
return View::make('dashboard.incidents.add')
|
||||
->withPageTitle(trans('dashboard.incidents.add.title').' - '.trans('dashboard.dashboard'))
|
||||
->withComponentsInGroups(ComponentGroup::with('components')->get())
|
||||
->withComponentsOutGroups(Component::where('group_id', 0)->get())
|
||||
->withComponentsOutGroups(Component::where('group_id', '=', 0)->get())
|
||||
->withIncidentTemplates(IncidentTemplate::all());
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ class IncidentController extends Controller
|
||||
->withPageTitle(trans('dashboard.incidents.edit.title').' - '.trans('dashboard.dashboard'))
|
||||
->withIncident($incident)
|
||||
->withComponentsInGroups(ComponentGroup::with('components')->get())
|
||||
->withComponentsOutGroups(Component::where('group_id', 0)->get());
|
||||
->withComponentsOutGroups(Component::where('group_id', '=', 0)->get());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -200,7 +200,7 @@ class SettingsController extends Controller
|
||||
{
|
||||
$this->subMenu['security']['active'] = true;
|
||||
|
||||
$unsecureUsers = User::whereNull('google_2fa_secret')->orWhere('google_2fa_secret', '')->get();
|
||||
$unsecureUsers = User::whereNull('google_2fa_secret')->orWhere('google_2fa_secret', '=', '')->get();
|
||||
|
||||
Session::flash('redirect_to', $this->subMenu['security']['url']);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ class SubscribeController extends Controller
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
$subscriber = Subscriber::where('verify_code', $code)->first();
|
||||
$subscriber = Subscriber::where('verify_code', '=', $code)->first();
|
||||
|
||||
if (!$subscriber) {
|
||||
throw new BadRequestHttpException();
|
||||
@@ -149,7 +149,7 @@ class SubscribeController extends Controller
|
||||
$subscriber = Subscriber::where('verify_code', '=', $code)->first();
|
||||
$usedComponentGroups = Component::enabled()->where('group_id', '>', 0)->groupBy('group_id')->pluck('group_id');
|
||||
$componentGroups = ComponentGroup::whereIn('id', $usedComponentGroups)->orderBy('order')->get();
|
||||
$ungroupedComponents = Component::enabled()->where('group_id', 0)->orderBy('order')->orderBy('created_at')->get();
|
||||
$ungroupedComponents = Component::enabled()->where('group_id', '=', 0)->orderBy('order')->orderBy('created_at')->get();
|
||||
|
||||
if (!$subscriber) {
|
||||
throw new BadRequestHttpException();
|
||||
|
||||
Reference in New Issue
Block a user