@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | if (array_key_exists('server-port', $this->server)) { |
114 | 114 | return $this->server['server-port']; |
115 | 115 | } |
116 | - return $this->getSecure()?443:80; |
|
116 | + return $this->getSecure() ? 443 : 80; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public static function createUriBase(RequestWrapper $request) |
159 | 159 | { |
160 | - $scheme = $request->isSecure()?'https':'http'; |
|
160 | + $scheme = $request->isSecure() ? 'https' : 'http'; |
|
161 | 161 | $port = $request->getPort(); |
162 | 162 | if ($port == 80 && $scheme == 'http') { |
163 | 163 | $port = ''; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | } else { |
167 | 167 | $port = ':'.$port; |
168 | 168 | } |
169 | - $base = $scheme.'://'. $request->getHost().$port; |
|
169 | + $base = $scheme.'://'.$request->getHost().$port; |
|
170 | 170 | return $base; |
171 | 171 | } |
172 | 172 |
@@ -7,12 +7,12 @@ |
||
7 | 7 | use suda\framework\http\HTTPResponse as Response; |
8 | 8 | use suda\application\builder\ApplicationBuilder; |
9 | 9 | |
10 | -require_once __DIR__ .'/loader.php'; |
|
10 | +require_once __DIR__.'/loader.php'; |
|
11 | 11 | |
12 | 12 | // 初始化系统加载器 |
13 | 13 | $loader = new Loader; |
14 | 14 | $loader->register(); |
15 | -$loader->addIncludePath(SUDA_SYSTEM .'/src', 'suda'); |
|
15 | +$loader->addIncludePath(SUDA_SYSTEM.'/src', 'suda'); |
|
16 | 16 | // 初始化数据目录 |
17 | 17 | defined('SUDA_DATA') or define('SUDA_DATA', Path::toAbsolutePath('~/data')); |
18 | 18 | defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP.'/manifest'); |