@@ -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 | /** |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | if ($this->alertBox->alertsPending()) { |
120 | 120 | $this->data['alert_messages'] = $this->alertBox->getAlerts(); |
121 | 121 | } |
122 | - if(Config::DEV_ENVIRONMENT){ |
|
122 | + if (Config::DEV_ENVIRONMENT) { |
|
123 | 123 | $this->data['dev'] = true; |
124 | - $classMethods =[]; |
|
125 | - $classMethods['class_object_methods']=get_class_methods(get_class($this)); |
|
126 | - $classMethods['class_object_vars']=get_object_vars($this); |
|
124 | + $classMethods = []; |
|
125 | + $classMethods['class_object_methods'] = get_class_methods(get_class($this)); |
|
126 | + $classMethods['class_object_vars'] = get_object_vars($this); |
|
127 | 127 | $this->data['dev_info'] = $classMethods; |
128 | 128 | } |
129 | 129 | $twig = $this->container->getTemplate(); |
130 | - $twig->display($template . '.twig', $this->data); |
|
130 | + $twig->display($template.'.twig', $this->data); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | \ No newline at end of file |