Passed
Push — dev ( 72eb07...9b7706 )
by 世昌
02:33
created
suda/src/application/processor/RunnableRequestProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
             $class = [$class];
102 102
         }
103 103
         foreach ($class as $index => $className) {
104
-            $class[$index] = $this->className($className) . '->onRequest';
104
+            $class[$index] = $this->className($className).'->onRequest';
105 105
         }
106 106
         return $class;
107 107
     }
Please login to merge, or discard this patch.
suda/src/application/Application.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function prepare(Request $request, Response $response)
86 86
     {
87
-        $response->setHeader('x-powered-by', 'suda/' . SUDA_VERSION, true);
87
+        $response->setHeader('x-powered-by', 'suda/'.SUDA_VERSION, true);
88 88
         $response->getWrapper()->register(ExceptionContentWrapper::class, [Throwable::class]);
89 89
         $response->getWrapper()->register(TemplateWrapper::class, [RawTemplate::class]);
90 90
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             if (!$appResponse->isSend()) {
139 139
                 $appResponse->end();
140 140
             }
141
-            $this->debug->info('responded with code ' . $appResponse->getStatus());
141
+            $this->debug->info('responded with code '.$appResponse->getStatus());
142 142
             $this->debug->timeEnd('sending response');
143 143
         } catch (Throwable $e) {
144 144
             $this->debug->uncaughtException($e);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     public function request(array $method, string $name, string $url, array $attributes = [])
162 162
     {
163 163
         $route = $attributes['config'] ?? [];
164
-        $runnable = RunnableRequestProcessor::class . '->onRequest';
164
+        $runnable = RunnableRequestProcessor::class.'->onRequest';
165 165
         if (array_key_exists('class', $route)) {
166 166
             $attributes['class'] = $route['class'];
167 167
         } elseif (array_key_exists('source', $route)) {
Please login to merge, or discard this patch.
suda/src/application/ApplicationBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @param string $name
73 73
      * @return Module|null
74 74
      */
75
-    public function find(string $name):?Module
75
+    public function find(string $name): ?Module
76 76
     {
77 77
         return $this->module->get($name);
78 78
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 $this->modulePaths[] = Resource::getPathByRelativePath($path, $this->path);
106 106
             }
107 107
         } else {
108
-            $this->modulePaths = [ Resource::getPathByRelativePath('modules', $this->path) ];
108
+            $this->modulePaths = [Resource::getPathByRelativePath('modules', $this->path)];
109 109
         }
110 110
     }
111 111
 
Please login to merge, or discard this patch.