@@ -48,7 +48,7 @@ |
||
48 | 48 | $routes = $this->config->toArray(); |
49 | 49 | |
50 | 50 | $this->adapter = \FastRoute\simpleDispatcher( |
51 | - function (RouteCollector $routeCollector) use ($routes) { |
|
51 | + function(RouteCollector $routeCollector) use ($routes) { |
|
52 | 52 | foreach ($routes as $route) { |
53 | 53 | $method = $route['allowed_methods']; |
54 | 54 | $uri = $route['path']; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $this->adapter->addExtension(new Twig_Extension_Debug()); |
60 | 60 | |
61 | 61 | $viewPath = $this->templateViewPath; |
62 | - $function = new Twig_SimpleFunction('defined', function ($fileName) use ($viewPath) { |
|
62 | + $function = new Twig_SimpleFunction('defined', function($fileName) use ($viewPath) { |
|
63 | 63 | $fileName = str_replace('@Theme', $viewPath, $fileName); |
64 | 64 | return file_exists($fileName); |
65 | 65 | }); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return ResponseInterface |
44 | 44 | */ |
45 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface $response) |
|
45 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface $response) |
|
46 | 46 | { |
47 | 47 | $template = $request->getAttribute('template'); |
48 | 48 | $data = $request->getAttribute('data'); |
@@ -291,7 +291,7 @@ |
||
291 | 291 | || $this->checkDomainIsValid($applicationName, $applicationData, $subDirectory) |
292 | 292 | ) { |
293 | 293 | $this->selectedModule = $applicationData['module']; |
294 | - $this->selectedApplication = (string)$applicationName; |
|
294 | + $this->selectedApplication = (string) $applicationName; |
|
295 | 295 | $this->selectedTheme = $applicationData['theme']; |
296 | 296 | |
297 | 297 | $this->selectedApplicationUri = '/'.$subDirectory; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * @param DataEntityInterface &$entity |
102 | 102 | * @return mixed The ID of the saved entity in the storage |
103 | 103 | */ |
104 | - public function saveEntity(DataEntityInterface &$entity) |
|
104 | + public function saveEntity(DataEntityInterface&$entity) |
|
105 | 105 | { |
106 | 106 | $entityClass = get_class($entity); |
107 | 107 | $storageEntityClass = get_class($this->entityPrototype); |