Passed
Push — dev ( fb106a...32f6bb )
by 世昌
03:12 queued 13s
created
suda/src/swoole/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function status(int $statusCode)
48 48
     {
49 49
         $this->response->status($statusCode);
50
-        $this->status  = $statusCode;
50
+        $this->status = $statusCode;
51 51
         return $this;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
public/server.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-define('SUDA_APP', __DIR__ . '/../app');
4
-define('SUDA_DATA', __DIR__ . '/../app/data');
5
-define('SUDA_SYSTEM', __DIR__ . '/../suda');
3
+define('SUDA_APP', __DIR__.'/../app');
4
+define('SUDA_DATA', __DIR__.'/../app/data');
5
+define('SUDA_SYSTEM', __DIR__.'/../suda');
6 6
 define('SUDA_PUBLIC', __DIR__);
7 7
 define('SUDA_DEBUG', true);
8 8
 define('SUDA_DEBUG_LEVEL', 'info');
9
-define('SUDA_APP_MANIFEST', SUDA_APP . '/manifest');
9
+define('SUDA_APP_MANIFEST', SUDA_APP.'/manifest');
10 10
 
11
-require_once SUDA_SYSTEM . '/loader/loader.php';
11
+require_once SUDA_SYSTEM.'/loader/loader.php';
12 12
 
13 13
 
14 14
 use suda\framework\debug\log\logger\FileLogger;
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 // 初始化系统加载器
23 23
 $loader = new Loader;
24 24
 $loader->register();
25
-$loader->addIncludePath(SUDA_SYSTEM . '/src', 'suda');
25
+$loader->addIncludePath(SUDA_SYSTEM.'/src', 'suda');
26 26
 
27 27
 $application = ApplicationBuilder::build($loader, SUDA_APP, SUDA_APP_MANIFEST, SUDA_DATA);
28 28
 
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
 $logger = new FileLogger(
34 34
     [
35 35
         'log-level' => SUDA_DEBUG_LEVEL,
36
-        'save-path' => $application->getDataPath() . '/logs',
37
-        'save-zip-path' => $application->getDataPath() . '/logs/zip',
36
+        'save-path' => $application->getDataPath().'/logs',
37
+        'save-zip-path' => $application->getDataPath().'/logs/zip',
38 38
         'log-format' => '%message%',
39
-        'save-pack-path' => $application->getDataPath() . '/logs/dump',
39
+        'save-pack-path' => $application->getDataPath().'/logs/dump',
40 40
     ]
41 41
 );
42 42
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
 $http = new Server('127.0.0.1', 9501);
47 47
 
48
-$http->on('request', function ($request, $response) use ($application, $logger) {
48
+$http->on('request', function($request, $response) use ($application, $logger) {
49 49
     $application->getDebug()->applyConfig([
50 50
         'start-time' => microtime(true),
51 51
         'start-memory' => memory_get_usage(),
Please login to merge, or discard this patch.