Passed
Push — Auth ( e2d976...3d95c3 )
by Stone
03:09
created
App/Controllers/Ajax/postModification.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
         if (!$this->container->getRequest()->isPost()) {
29 29
             throw new \Core\JsonException('Call is not post');
30 30
         }
31
-        $state = (bool)($this->request->getData("state") === 'true');
32
-        $postId = (int)$this->request->getData("postId");
31
+        $state = (bool) ($this->request->getData("state") === 'true');
32
+        $postId = (int) $this->request->getData("postId");
33 33
 
34 34
         $result = array();
35 35
         $result["success"] = $this->postModule->setPublished(!$state, $postId);
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         if (!$this->container->getRequest()->isPost()) {
49 49
             throw new \Core\JsonException('Call is not post');
50 50
         }
51
-        $state = (bool)($this->request->getData("state") === 'true'); //TODO test this element
52
-        $postId = (int)$this->request->getData("postId");
51
+        $state = (bool) ($this->request->getData("state") === 'true'); //TODO test this element
52
+        $postId = (int) $this->request->getData("postId");
53 53
 
54 54
         $result = array();
55 55
         $result["success"] = $this->postModule->setOnFrontPage(!$state, $postId);
Please login to merge, or discard this patch.