Passed
Push — Showing-Posts ( 1f11b9...54555e )
by Stone
02:27
created
Core/AdminController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
         $this->data['userLevel'] = $this->auth->getUserLevel();
28 28
     }
29 29
 
30
-    protected function onlyAdmin(){
31
-        if(!$this->auth->isAdmin()){
30
+    protected function onlyAdmin() {
31
+        if (!$this->auth->isAdmin()) {
32 32
             $this->alertBox->setAlert("Only admins can access this", 'error');
33 33
             $this->container->getResponse()->redirect('/admin');
34 34
         }
Please login to merge, or discard this patch.
App/Controllers/Admin/Post.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 
4 4
 use Core\AdminController;
5 5
 
6
-class Post extends AdminController{
6
+class Post extends AdminController {
7 7
 
8 8
     /**
9 9
      * page for new post
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * Shows the post to modify and update
26 26
      * @param $idPost
27 27
      */
28
-    public function modify($idPost){
28
+    public function modify($idPost) {
29 29
         $this->onlyAdmin();
30 30
 
31 31
     }
Please login to merge, or discard this patch.
App/Controllers/Admin/Home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function index()
10 10
     {
11
-        if(!$this->auth->isUser()){
11
+        if (!$this->auth->isUser()) {
12 12
             $this->alertBox->setAlert("You must be connected to acces the admin interface", 'warning');
13 13
             $this->container->getResponse()->redirect();
14 14
         }
Please login to merge, or discard this patch.