@@ -101,7 +101,7 @@ |
||
101 | 101 | $class = [$class]; |
102 | 102 | } |
103 | 103 | foreach ($class as $index => $className) { |
104 | - $class[$index] = $this->className($className) . '->onRequest'; |
|
104 | + $class[$index] = $this->className($className).'->onRequest'; |
|
105 | 105 | } |
106 | 106 | return $class; |
107 | 107 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | protected function prepare(Request $request, Response $response) |
86 | 86 | { |
87 | - $response->setHeader('x-powered-by', 'suda/' . SUDA_VERSION, true); |
|
87 | + $response->setHeader('x-powered-by', 'suda/'.SUDA_VERSION, true); |
|
88 | 88 | $response->getWrapper()->register(ExceptionContentWrapper::class, [Throwable::class]); |
89 | 89 | $response->getWrapper()->register(TemplateWrapper::class, [RawTemplate::class]); |
90 | 90 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | if (!$appResponse->isSend()) { |
139 | 139 | $appResponse->end(); |
140 | 140 | } |
141 | - $this->debug->info('responded with code ' . $appResponse->getStatus()); |
|
141 | + $this->debug->info('responded with code '.$appResponse->getStatus()); |
|
142 | 142 | $this->debug->timeEnd('sending response'); |
143 | 143 | } catch (Throwable $e) { |
144 | 144 | $this->debug->uncaughtException($e); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | public function request(array $method, string $name, string $url, array $attributes = []) |
162 | 162 | { |
163 | 163 | $route = $attributes['config'] ?? []; |
164 | - $runnable = RunnableRequestProcessor::class . '->onRequest'; |
|
164 | + $runnable = RunnableRequestProcessor::class.'->onRequest'; |
|
165 | 165 | if (array_key_exists('class', $route)) { |
166 | 166 | $attributes['class'] = $route['class']; |
167 | 167 | } elseif (array_key_exists('source', $route)) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param string $name |
73 | 73 | * @return Module|null |
74 | 74 | */ |
75 | - public function find(string $name):?Module |
|
75 | + public function find(string $name): ?Module |
|
76 | 76 | { |
77 | 77 | return $this->module->get($name); |
78 | 78 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $this->modulePaths[] = Resource::getPathByRelativePath($path, $this->path); |
106 | 106 | } |
107 | 107 | } else { |
108 | - $this->modulePaths = [ Resource::getPathByRelativePath('modules', $this->path) ]; |
|
108 | + $this->modulePaths = [Resource::getPathByRelativePath('modules', $this->path)]; |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 |