@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | self::autoload($this->conf['root_path']); |
| 79 | 79 | |
| 80 | 80 | // Make kernel for Laravel |
| 81 | - $app = require $this->conf['root_path'] . '/bootstrap/app.php'; |
|
| 81 | + $app = require $this->conf['root_path'].'/bootstrap/app.php'; |
|
| 82 | 82 | $kernel = $this->conf['is_lumen'] ? null : $app->make(HttpKernel::class); |
| 83 | 83 | |
| 84 | 84 | // Boot |
@@ -98,14 +98,14 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | $cfgPaths = [ |
| 100 | 100 | // Framework default configuration |
| 101 | - $this->conf['root_path'] . '/vendor/laravel/lumen-framework/config/', |
|
| 101 | + $this->conf['root_path'].'/vendor/laravel/lumen-framework/config/', |
|
| 102 | 102 | // App configuration |
| 103 | - $this->conf['root_path'] . '/config/', |
|
| 103 | + $this->conf['root_path'].'/config/', |
|
| 104 | 104 | ]; |
| 105 | 105 | |
| 106 | 106 | $keys = []; |
| 107 | 107 | foreach ($cfgPaths as $cfgPath) { |
| 108 | - $configs = (array)glob($cfgPath . '*.php'); |
|
| 108 | + $configs = (array) glob($cfgPath.'*.php'); |
|
| 109 | 109 | foreach ($configs as $config) { |
| 110 | 110 | $config = substr(basename($config), 0, -4); |
| 111 | 111 | $keys[$config] = $config; |
@@ -119,11 +119,11 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | public static function autoload($rootPath) |
| 121 | 121 | { |
| 122 | - $autoload = $rootPath . '/bootstrap/autoload.php'; |
|
| 122 | + $autoload = $rootPath.'/bootstrap/autoload.php'; |
|
| 123 | 123 | if (file_exists($autoload)) { |
| 124 | 124 | require_once $autoload; |
| 125 | 125 | } else { |
| 126 | - require_once $rootPath . '/vendor/autoload.php'; |
|
| 126 | + require_once $rootPath.'/vendor/autoload.php'; |
|
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | // prefer content in response, secondly ob |
| 155 | - if (!($response instanceof StreamedResponse) && (string)$content === '' && ob_get_length() > 0) { |
|
| 155 | + if (!($response instanceof StreamedResponse) && (string) $content === '' && ob_get_length() > 0) { |
|
| 156 | 156 | $response->setContent(ob_get_contents()); |
| 157 | 157 | } |
| 158 | 158 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $uri = urldecode($uri); |
| 171 | 171 | |
| 172 | 172 | $publicPath = $this->conf['static_path']; |
| 173 | - $requestFile = $publicPath . $uri; |
|
| 173 | + $requestFile = $publicPath.$uri; |
|
| 174 | 174 | if (is_file($requestFile)) { |
| 175 | 175 | return $this->createStaticResponse($requestFile, $request); |
| 176 | 176 | } |
@@ -186,9 +186,9 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | protected function lookupIndex($folder) |
| 188 | 188 | { |
| 189 | - $folder = rtrim($folder, '/') . '/'; |
|
| 189 | + $folder = rtrim($folder, '/').'/'; |
|
| 190 | 190 | foreach (['index.html', 'index.htm'] as $index) { |
| 191 | - $tmpFile = $folder . $index; |
|
| 191 | + $tmpFile = $folder.$index; |
|
| 192 | 192 | if (is_file($tmpFile)) { |
| 193 | 193 | return $tmpFile; |
| 194 | 194 | } |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | |
| 230 | 230 | public function bindSwoole($swoole) |
| 231 | 231 | { |
| 232 | - $this->currentApp->singleton('swoole', function () use ($swoole) { |
|
| 232 | + $this->currentApp->singleton('swoole', function() use ($swoole) { |
|
| 233 | 233 | return $swoole; |
| 234 | 234 | }); |
| 235 | 235 | } |