@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | protected static function parseValue(string $content, array $extra = [], bool $raw = true): string |
67 | 67 | { |
68 | - return preg_replace_callback('/\$\{(.+?)\}/', function ($matchs) use ($extra, $raw) { |
|
68 | + return preg_replace_callback('/\$\{(.+?)\}/', function($matchs) use ($extra, $raw) { |
|
69 | 69 | $name = $matchs[1]; |
70 | 70 | if (($value = ArrayDotAccess::get($extra, $name, null)) !== null) { |
71 | 71 | } elseif (defined($name)) { |
@@ -7,12 +7,12 @@ |
||
7 | 7 | use suda\framework\http\HTTPResponse; |
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'); |