@@ -40,9 +40,9 @@ |
||
40 | 40 | $this->container->getResponse()->redirect(); |
41 | 41 | } |
42 | 42 | |
43 | - public function whoami(){ |
|
43 | + public function whoami() { |
|
44 | 44 | $userType = $this->auth->getUser(); |
45 | - if (is_null($userType)){ |
|
45 | + if (is_null($userType)) { |
|
46 | 46 | $userType = 'Not Set'; |
47 | 47 | } |
48 | 48 | $this->alertBox->setAlert($userType); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | } elseif ($this->auth->isUser()) { |
16 | 16 | $this->data['userRole'] = 'User'; |
17 | 17 | $this->data['userLevel'] = $this->auth->getUserLevel(); |
18 | - }else { |
|
18 | + } else { |
|
19 | 19 | $this->alertBox->setAlert("You must be connected to acces the admin interface", 'warning'); |
20 | 20 | $this->container->getResponse()->redirect(); |
21 | 21 | } |