@@ -25,13 +25,13 @@ |
||
25 | 25 | */ |
26 | 26 | public function display(string $id): void |
27 | 27 | { |
28 | - $status = (bool)$this->request->query->get('status', 0); |
|
28 | + $status = (bool) $this->request->query->get('status', 0); |
|
29 | 29 | $content = \Apps\ActiveRecord\Content::find($id); |
30 | 30 | if (!$content) { |
31 | 31 | throw new NotFoundException(__('Content {%id%} are not exist', ['id' => $id])); |
32 | 32 | } |
33 | 33 | // make update query if status is different than required |
34 | - if ((bool)$content->display !== $status) { |
|
34 | + if ((bool) $content->display !== $status) { |
|
35 | 35 | $content->display = $status; |
36 | 36 | $content->save(); |
37 | 37 | } |
@@ -24,13 +24,13 @@ |
||
24 | 24 | */ |
25 | 25 | public function important(string $id): void |
26 | 26 | { |
27 | - $status = (bool)$this->request->query->get('status', 0); |
|
27 | + $status = (bool) $this->request->query->get('status', 0); |
|
28 | 28 | $content = \Apps\ActiveRecord\Content::find($id); |
29 | 29 | if (!$content) { |
30 | 30 | throw new NotFoundException(__('Content {%id%} are not exist', ['id' => $id])); |
31 | 31 | } |
32 | 32 | |
33 | - if ((bool)$content->important !== $status) { |
|
33 | + if ((bool) $content->important !== $status) { |
|
34 | 34 | $content->important = $status; |
35 | 35 | $content->save(); |
36 | 36 | } |