Passed
Push — master ( c57047...e9f946 )
by Mihail
06:06
created
Apps/Controller/Admin/Content/ActionImportantChange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.