Skip to content

Commit

Permalink
Merge pull request #3220 from gazben/patch-1
Browse files Browse the repository at this point in the history
Add bool cast to boolean Incident parameters
  • Loading branch information
jbrooksuk committed Sep 5, 2018
2 parents 5663498 + 15a87a8 commit a740d5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Http/Controllers/Api/IncidentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public function store()
Binput::get('name'),
Binput::get('status'),
Binput::get('message', null, false, false),
Binput::get('visible', true),
(bool) Binput::get('visible', true),
Binput::get('component_id'),
Binput::get('component_status'),
Binput::get('notify', true),
Binput::get('stickied', false),
(bool) Binput::get('notify', true),
(bool) Binput::get('stickied', false),
Binput::get('occurred_at'),
Binput::get('template'),
Binput::get('vars', []),
Expand Down Expand Up @@ -103,11 +103,11 @@ public function update(Incident $incident)
Binput::get('name'),
Binput::get('status'),
Binput::get('message'),
Binput::get('visible', true),
(bool) Binput::get('visible', true),
Binput::get('component_id'),
Binput::get('component_status'),
Binput::get('notify', true),
Binput::get('stickied', false),
(bool) Binput::get('notify', true),
(bool) Binput::get('stickied', false),
Binput::get('occurred_at'),
Binput::get('template'),
Binput::get('vars', [])
Expand Down

0 comments on commit a740d5c

Please sign in to comment.