@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | self::autoload($this->conf['root_path']); |
83 | 83 | |
84 | 84 | // Make kernel for Laravel |
85 | - $app = require $this->conf['root_path'] . '/bootstrap/app.php'; |
|
85 | + $app = require $this->conf['root_path'].'/bootstrap/app.php'; |
|
86 | 86 | $kernel = $this->conf['is_lumen'] ? null : $app->make(HttpKernel::class); |
87 | 87 | |
88 | 88 | // Boot |
@@ -102,14 +102,14 @@ discard block |
||
102 | 102 | { |
103 | 103 | $cfgPaths = [ |
104 | 104 | // Framework default configuration |
105 | - $this->conf['root_path'] . '/vendor/laravel/lumen-framework/config/', |
|
105 | + $this->conf['root_path'].'/vendor/laravel/lumen-framework/config/', |
|
106 | 106 | // App configuration |
107 | - $this->conf['root_path'] . '/config/', |
|
107 | + $this->conf['root_path'].'/config/', |
|
108 | 108 | ]; |
109 | 109 | |
110 | 110 | $keys = []; |
111 | 111 | foreach ($cfgPaths as $cfgPath) { |
112 | - $configs = (array)glob($cfgPath . '*.php'); |
|
112 | + $configs = (array) glob($cfgPath.'*.php'); |
|
113 | 113 | foreach ($configs as $config) { |
114 | 114 | $config = substr(basename($config), 0, -4); |
115 | 115 | $keys[$config] = $config; |
@@ -123,11 +123,11 @@ discard block |
||
123 | 123 | |
124 | 124 | public static function autoload($rootPath) |
125 | 125 | { |
126 | - $autoload = $rootPath . '/bootstrap/autoload.php'; |
|
126 | + $autoload = $rootPath.'/bootstrap/autoload.php'; |
|
127 | 127 | if (file_exists($autoload)) { |
128 | 128 | require_once $autoload; |
129 | 129 | } else { |
130 | - require_once $rootPath . '/vendor/autoload.php'; |
|
130 | + require_once $rootPath.'/vendor/autoload.php'; |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | // prefer content in response, secondly ob |
159 | - if (!($response instanceof StreamedResponse) && (string)$content === '' && ob_get_length() > 0) { |
|
159 | + if (!($response instanceof StreamedResponse) && (string) $content === '' && ob_get_length() > 0) { |
|
160 | 160 | $response->setContent(ob_get_contents()); |
161 | 161 | } |
162 | 162 | |
@@ -168,12 +168,12 @@ discard block |
||
168 | 168 | public function handleStatic(IlluminateRequest $request) |
169 | 169 | { |
170 | 170 | $uri = $request->getRequestUri(); |
171 | - $uri = (string)str_replace("\0", '', urldecode($uri)); |
|
171 | + $uri = (string) str_replace("\0", '', urldecode($uri)); |
|
172 | 172 | if (isset(self::$staticBlackList[$uri]) || strpos($uri, '/..') !== false) { |
173 | 173 | return false; |
174 | 174 | } |
175 | 175 | |
176 | - $requestFile = $this->conf['static_path'] . $uri; |
|
176 | + $requestFile = $this->conf['static_path'].$uri; |
|
177 | 177 | if (is_file($requestFile)) { |
178 | 178 | return $this->createStaticResponse($requestFile, $request); |
179 | 179 | } |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | |
190 | 190 | protected function lookupIndex($folder) |
191 | 191 | { |
192 | - $folder = rtrim($folder, '/') . '/'; |
|
192 | + $folder = rtrim($folder, '/').'/'; |
|
193 | 193 | foreach (self::$staticIndexList as $index) { |
194 | - $tmpFile = $folder . $index; |
|
194 | + $tmpFile = $folder.$index; |
|
195 | 195 | if (is_file($tmpFile)) { |
196 | 196 | return $tmpFile; |
197 | 197 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | |
233 | 233 | public function bindSwoole($swoole) |
234 | 234 | { |
235 | - $this->currentApp->singleton('swoole', function () use ($swoole) { |
|
235 | + $this->currentApp->singleton('swoole', function() use ($swoole) { |
|
236 | 236 | return $swoole; |
237 | 237 | }); |
238 | 238 | } |