Passed
Push — master ( a50b30...2c49a0 )
by 世昌
04:23
created
suda/src/application/Application.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function prepare(Request $request, Response $response)
65 65
     {
66
-        $response->setHeader('x-powered-by', 'suda/' . SUDA_VERSION, true);
66
+        $response->setHeader('x-powered-by', 'suda/'.SUDA_VERSION, true);
67 67
         $response->getWrapper()->register(ExceptionContentWrapper::class, [Throwable::class]);
68 68
         $response->getWrapper()->register(TemplateWrapper::class, [RawTemplate::class]);
69 69
         $this->setCatcher(new RequestDumpCatcher($this, $request, $response));
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             if (!$appResponse->isSend()) {
127 127
                 $appResponse->end();
128 128
             }
129
-            $this->debug->info('responded with code ' . $appResponse->getStatus());
129
+            $this->debug->info('responded with code '.$appResponse->getStatus());
130 130
             $this->debug->timeEnd('sending response');
131 131
         } catch (Throwable $e) {
132 132
             $this->debug->uncaughtException($e);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     public function request(array $method, string $name, string $url, array $attributes = [])
150 150
     {
151 151
         $route = $attributes['config'] ?? [];
152
-        $runnable = RunnableRequestProcessor::class . '->onRequest';
152
+        $runnable = RunnableRequestProcessor::class.'->onRequest';
153 153
         if (array_key_exists('class', $route)) {
154 154
             $attributes['class'] = $route['class'];
155 155
         } elseif (array_key_exists('source', $route)) {
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2
-define('SUDA_APP', __DIR__ . '/../app');
3
-define('SUDA_DATA', __DIR__ . '/../data');
4
-define('SUDA_SYSTEM', __DIR__ . '/../suda');
2
+define('SUDA_APP', __DIR__.'/../app');
3
+define('SUDA_DATA', __DIR__.'/../data');
4
+define('SUDA_SYSTEM', __DIR__.'/../suda');
5 5
 define('SUDA_PUBLIC', __DIR__);
6 6
 define('SUDA_DEBUG', true);
7 7
 define('SUDA_DEBUG_LEVEL', 'info');
8 8
 
9
-if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
10
-    require_once __DIR__ . '/../vendor/autoload.php';
9
+if (file_exists(__DIR__.'/../vendor/autoload.php')) {
10
+    require_once __DIR__.'/../vendor/autoload.php';
11 11
 } else {
12 12
     die('please run <b>composer install</b> to install requirements');
13 13
 }
14 14
 
15
-require_once SUDA_SYSTEM . '/loader/main.php';
15
+require_once SUDA_SYSTEM.'/loader/main.php';
16 16
 
17 17
 
Please login to merge, or discard this patch.
suda/src/application/ModuleBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
         if (array_key_exists($version, $this->version[$shortName])) {
215 215
             return $this->version[$shortName][$version];
216 216
         }
217
-        return $hasVersion ? $shortName . ':' . $version : end($this->version[$shortName]);
217
+        return $hasVersion ? $shortName.':'.$version : end($this->version[$shortName]);
218 218
     }
219 219
 
220 220
     protected function getLikeName(string $name): string
Please login to merge, or discard this patch.