@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function prepare(Request $request, Response $response) |
78 | 78 | { |
79 | - $response->setHeader('x-powered-by', 'suda/' . SUDA_VERSION, true); |
|
79 | + $response->setHeader('x-powered-by', 'suda/'.SUDA_VERSION, true); |
|
80 | 80 | $response->getWrapper()->register(ExceptionContentWrapper::class, [Throwable::class]); |
81 | 81 | $response->getWrapper()->register(TemplateWrapper::class, [RawTemplate::class]); |
82 | 82 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | if (!$appResponse->isSend()) { |
130 | 130 | $appResponse->end(); |
131 | 131 | } |
132 | - $this->debug->info('responded with code ' . $appResponse->getStatus()); |
|
132 | + $this->debug->info('responded with code '.$appResponse->getStatus()); |
|
133 | 133 | $this->debug->timeEnd('sending response'); |
134 | 134 | } catch (Throwable $e) { |
135 | 135 | $this->debug->uncaughtException($e); |
@@ -155,13 +155,13 @@ discard block |
||
155 | 155 | $route = $attributes['config'] ?? []; |
156 | 156 | $runnable = null; |
157 | 157 | if (array_key_exists('class', $route)) { |
158 | - $runnable = $this->className($route['class']) . '->onRequest'; |
|
158 | + $runnable = $this->className($route['class']).'->onRequest'; |
|
159 | 159 | } elseif (array_key_exists('source', $route)) { |
160 | 160 | $attributes['source'] = $route['source']; |
161 | - $runnable = FileRequestProcessor::class . '->onRequest'; |
|
161 | + $runnable = FileRequestProcessor::class.'->onRequest'; |
|
162 | 162 | } elseif (array_key_exists('template', $route)) { |
163 | 163 | $attributes['template'] = $route['template']; |
164 | - $runnable = TemplateRequestProcessor::class . '->onRequest'; |
|
164 | + $runnable = TemplateRequestProcessor::class.'->onRequest'; |
|
165 | 165 | } elseif (array_key_exists('runnable', $route)) { |
166 | 166 | $runnable = $route['runnable']; |
167 | 167 | } else { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function loadVendorIfExist() |
98 | 98 | { |
99 | - $vendorAutoload = $this->application->getPath() . '/vendor/autoload.php'; |
|
99 | + $vendorAutoload = $this->application->getPath().'/vendor/autoload.php'; |
|
100 | 100 | if (FileSystem::exist($vendorAutoload)) { |
101 | 101 | Loader::requireOnce($vendorAutoload); |
102 | 102 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function registerModule() |
145 | 145 | { |
146 | - $extractPath = $this->application->getDataPath() . '/extract-module'; |
|
146 | + $extractPath = $this->application->getDataPath().'/extract-module'; |
|
147 | 147 | FileSystem::make($extractPath); |
148 | 148 | foreach ($this->application->getModulePaths() as $path) { |
149 | 149 | $this->registerModuleFrom($path, $extractPath); |