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