Passed
Push — dev ( bff487...9e1c42 )
by 世昌
02:52 queued 11s
created
console.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require_once __DIR__ . '/vendor/autoload.php';
2
+require_once __DIR__.'/vendor/autoload.php';
3 3
 
4 4
 use suda\framework\Config;
5 5
 use suda\application\Module;
@@ -10,22 +10,22 @@  discard block
 block discarded – undo
10 10
 use suda\framework\debug\log\logger\FileLogger;
11 11
 use suda\application\builder\ApplicationBuilder;
12 12
 
13
-defined('SUDA_APP') or define('SUDA_APP', __DIR__ . '/app');
14
-defined('SUDA_DATA') or define('SUDA_DATA', __DIR__ . '/data');
15
-defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__ . '/suda');
16
-defined('SUDA_PUBLIC') or define('SUDA_PUBLIC', __DIR__ . '/public');
13
+defined('SUDA_APP') or define('SUDA_APP', __DIR__.'/app');
14
+defined('SUDA_DATA') or define('SUDA_DATA', __DIR__.'/data');
15
+defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__.'/suda');
16
+defined('SUDA_PUBLIC') or define('SUDA_PUBLIC', __DIR__.'/public');
17 17
 
18 18
 defined('SUDA_DEBUG') or define('SUDA_DEBUG', true);
19 19
 defined('SUDA_DEBUG_LEVEL') or define('SUDA_DEBUG_LEVEL', 'debug');
20
-defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP . '/manifest');
21
-defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA . '/logs');
20
+defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP.'/manifest');
21
+defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA.'/logs');
22 22
 
23
-require_once SUDA_SYSTEM . '/loader/loader.php';
23
+require_once SUDA_SYSTEM.'/loader/loader.php';
24 24
 
25 25
 // 初始化系统加载器
26 26
 $loader = new Loader;
27 27
 $loader->register();
28
-$loader->addIncludePath(SUDA_SYSTEM . '/src', 'suda');
28
+$loader->addIncludePath(SUDA_SYSTEM.'/src', 'suda');
29 29
 // 初始化数据目录
30 30
 $application = ApplicationBuilder::build($loader, SUDA_APP, SUDA_APP_MANIFEST, SUDA_DATA);
31 31
 
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
     [
35 35
         'log-level' => SUDA_DEBUG_LEVEL,
36 36
         'save-path' => SUDA_DEBUG_LOG_PATH,
37
-        'save-dump-path' => SUDA_DEBUG_LOG_PATH . '/dump',
38
-        'save-zip-path' => SUDA_DEBUG_LOG_PATH . '/zip',
37
+        'save-dump-path' => SUDA_DEBUG_LOG_PATH.'/dump',
38
+        'save-zip-path' => SUDA_DEBUG_LOG_PATH.'/zip',
39 39
         'log-format' => '%message%',
40 40
     ]
41 41
 );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 /** @var Command $cmd */
63 63
                 $className = Loader::realName($item['class']);
64 64
                 $cmd = new $className;
65
-                $cmd->setName($module->getName() . ':' . $cmd->getName());
65
+                $cmd->setName($module->getName().':'.$cmd->getName());
66 66
                 if (method_exists($cmd, 'putApplication')) {
67 67
                     call_user_func_array([$cmd, 'putApplication'], [$application]);
68 68
                 }
Please login to merge, or discard this patch.