@@ -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 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | $twig = $this->container->getTemplate(); |
124 | - $twig->display($template . '.twig', $this->data); |
|
124 | + $twig->display($template.'.twig', $this->data); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | } |
128 | 128 | \ No newline at end of file |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | default: |
24 | 24 | $headerType = 'text/html'; |
25 | 25 | } |
26 | - $contentType = 'Content-Type: ' . $headerType; |
|
26 | + $contentType = 'Content-Type: '.$headerType; |
|
27 | 27 | |
28 | 28 | header($contentType); |
29 | 29 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | - header("location: /" . $url); |
|
44 | + header("location: /".$url); |
|
45 | 45 | exit(); //after redirect do not execute anything else from the function |
46 | 46 | } |
47 | 47 | } |
48 | 48 | \ No newline at end of file |