@@ -102,7 +102,7 @@ |
||
102 | 102 | 500 => '500 Internal Server Error' |
103 | 103 | ); |
104 | 104 | // ok, validation error, or failure |
105 | - header('Status: ' . $status[$code]); |
|
105 | + header('Status: '.$status[$code]); |
|
106 | 106 | // return the encoded json |
107 | 107 | return json_encode(array( |
108 | 108 | 'status' => $code < 300, // success or not? |
@@ -12,7 +12,7 @@ |
||
12 | 12 | $this->data['userLevel'] = 'Admin'; |
13 | 13 | } elseif ($this->auth->isUser()) { |
14 | 14 | $this->data['userLevel'] = 'User'; |
15 | - }else { |
|
15 | + } else { |
|
16 | 16 | $this->alertBox->setAlert("Not Admin", 'warning'); |
17 | 17 | $this->alertBox->setAlert("TESTING", 'error'); |
18 | 18 | $this->container->getResponse()->redirect(); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | //We load all our module objects into our object |
62 | 62 | foreach ($this->loadModules as $loadModule) { |
63 | - $loadModuleObj = 'Core\\Modules\\' . $loadModule; |
|
63 | + $loadModuleObj = 'Core\\Modules\\'.$loadModule; |
|
64 | 64 | |
65 | 65 | $loadModuleName = lcfirst($loadModule); |
66 | 66 | $loadedModule = new $loadModuleObj($this->container); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | //we are not allowed to create public modules, they must be a placeholder ready |
73 | 73 | if (!property_exists($this, $loadModuleName)) { |
74 | - throw new \ErrorException('class var ' . $loadModuleName . ' not present'); |
|
74 | + throw new \ErrorException('class var '.$loadModuleName.' not present'); |
|
75 | 75 | } |
76 | 76 | $this->$loadModuleName = $loadedModule; |
77 | 77 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | public function getView($template) |
103 | 103 | { |
104 | 104 | $twig = $this->container->getTemplate(); |
105 | - return $twig->render($template . '.twig', $this->data); |
|
105 | + return $twig->render($template.'.twig', $this->data); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -120,6 +120,6 @@ discard block |
||
120 | 120 | $this->data['alert_messages'] = $this->alertbox->getAlerts(); |
121 | 121 | } |
122 | 122 | $twig = $this->container->getTemplate(); |
123 | - $twig->display($template . '.twig', $this->data); |
|
123 | + $twig->display($template.'.twig', $this->data); |
|
124 | 124 | } |
125 | 125 | } |
126 | 126 | \ No newline at end of file |