Passed
Push — dev ( 1930e5...4afce3 )
by 世昌
02:32
created
server.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@
 block discarded – undo
2 2
 $host = $argv[1] ?? '127.0.0.1:9501';
3 3
 list($ip, $port) = explode(':', $host);
4 4
 
5
-defined('SUDA_APP') or define('SUDA_APP', __DIR__ . '/app');
6
-defined('SUDA_DATA') or define('SUDA_DATA', __DIR__ . '/data');
7
-defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__ . '/suda');
5
+defined('SUDA_APP') or define('SUDA_APP', __DIR__.'/app');
6
+defined('SUDA_DATA') or define('SUDA_DATA', __DIR__.'/data');
7
+defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__.'/suda');
8 8
 defined('SUDA_PUBLIC') or define('SUDA_PUBLIC', __DIR__);
9 9
 defined('SUDA_DEBUG') or define('SUDA_DEBUG', true);
10 10
 defined('SUDA_DEBUG_LEVEL') or define('SUDA_DEBUG_LEVEL', 'debug');
11
-defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP . '/manifest');
12
-defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA . '/logs');
11
+defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP.'/manifest');
12
+defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA.'/logs');
13 13
 // 设置IP或者端口
14 14
 defined('SUDA_SWOOLE_IP') or define('SUDA_SWOOLE_IP', $ip);
15 15
 defined('SUDA_SWOOLE_PORT') or define('SUDA_SWOOLE_PORT', $port);
16 16
 
17
-require_once __DIR__ . '/vendor/autoload.php';
18
-require_once SUDA_SYSTEM . '/loader/swoole.php';
19 17
\ No newline at end of file
18
+require_once __DIR__.'/vendor/autoload.php';
19
+require_once SUDA_SYSTEM.'/loader/swoole.php';
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
console.php 1 patch
Spacing   +11 added lines, -11 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;
@@ -12,21 +12,21 @@  discard block
 block discarded – undo
12 12
 use suda\application\builder\ApplicationBuilder;
13 13
 use suda\application\loader\ApplicationBaseLoader;
14 14
 
15
-defined('SUDA_APP') or define('SUDA_APP', __DIR__ . '/app');
16
-defined('SUDA_DATA') or define('SUDA_DATA', __DIR__ . '/data');
17
-defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__ . '/suda');
15
+defined('SUDA_APP') or define('SUDA_APP', __DIR__.'/app');
16
+defined('SUDA_DATA') or define('SUDA_DATA', __DIR__.'/data');
17
+defined('SUDA_SYSTEM') or define('SUDA_SYSTEM', __DIR__.'/suda');
18 18
 defined('SUDA_PUBLIC') or define('SUDA_PUBLIC', __DIR__);
19 19
 defined('SUDA_DEBUG') or define('SUDA_DEBUG', true);
20 20
 defined('SUDA_DEBUG_LEVEL') or define('SUDA_DEBUG_LEVEL', 'debug');
21
-defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP . '/manifest');
22
-defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA . '/logs');
21
+defined('SUDA_APP_MANIFEST') or define('SUDA_APP_MANIFEST', SUDA_APP.'/manifest');
22
+defined('SUDA_DEBUG_LOG_PATH') or define('SUDA_DEBUG_LOG_PATH', SUDA_DATA.'/logs');
23 23
 
24
-require_once SUDA_SYSTEM . '/loader/loader.php';
24
+require_once SUDA_SYSTEM.'/loader/loader.php';
25 25
 
26 26
 // 初始化系统加载器
27 27
 $loader = new Loader;
28 28
 $loader->register();
29
-$loader->addIncludePath(SUDA_SYSTEM . '/src', 'suda');
29
+$loader->addIncludePath(SUDA_SYSTEM.'/src', 'suda');
30 30
 // 初始化数据目录
31 31
 $manifestConfig = ApplicationBuilder::loadManifest(SUDA_APP, SUDA_APP_MANIFEST);
32 32
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     [
41 41
         'log-level' => SUDA_DEBUG_LEVEL,
42 42
         'save-path' => SUDA_DEBUG_LOG_PATH,
43
-        'save-dump-path' => SUDA_DEBUG_LOG_PATH . '/dump',
44
-        'save-zip-path' => SUDA_DEBUG_LOG_PATH . '/zip',
43
+        'save-dump-path' => SUDA_DEBUG_LOG_PATH.'/dump',
44
+        'save-zip-path' => SUDA_DEBUG_LOG_PATH.'/zip',
45 45
         'log-format' => '%message%',
46 46
     ]
47 47
 );
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 /** @var Command $cmd */
67 67
                 $className = Loader::realName($item['class']);
68 68
                 $cmd = new $className;
69
-                $cmd->setName($module->getName() . ':' . $cmd->getName());
69
+                $cmd->setName($module->getName().':'.$cmd->getName());
70 70
                 $app->add($cmd);
71 71
             }
72 72
         }
Please login to merge, or discard this patch.
suda/resource/app/modules/welcome/share/console/TestConsole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         $name = $input->getArgument('name');
34 34
         if ($name) {
35
-            $text = 'Hello ' . $name;
35
+            $text = 'Hello '.$name;
36 36
         } else {
37 37
             $text = 'Hello';
38 38
         }
Please login to merge, or discard this patch.
suda/src/application/ApplicationModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
             $module = $default;
268 268
         }
269 269
         if ($module !== null && ($moduleObj = $this->find($module))) {
270
-            return $moduleObj->getFullName() . ':' . $name;
270
+            return $moduleObj->getFullName().':'.$name;
271 271
         }
272 272
         return $name;
273 273
     }
Please login to merge, or discard this patch.