@@ -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 | } |