Completed
Push — master ( 69686b...b3f98f )
by Arman
21s queued 16s
created
src/Module/ModuleLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
             throw ModuleException::moduleRoutesNotFound($module);
153 153
         }
154 154
 
155
-        if(empty(self::$moduleRoutes[$module])) {
155
+        if (empty(self::$moduleRoutes[$module])) {
156 156
             self::$moduleRoutes[$module] = $this->fs->require($moduleRoutes, true);
157 157
         }
158 158
 
Please login to merge, or discard this patch.
src/Module/ModuleManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * @param string $srcPath
222 222
      * @param string $dstPath
223 223
      */
224
-    private function processTemplates(string $srcPath, string &$dstPath){
224
+    private function processTemplates(string $srcPath, string &$dstPath) {
225 225
         $dstPath = str_replace('.tpl', '.php', $dstPath);
226 226
         $content = $this->fs->get($srcPath);
227 227
         $processedContent = $this->replacePlaceholders($content);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     private function replacePlaceholders(string $content): string
236 236
     {
237 237
         $placeholders = [
238
-            '{{MODULE_NAMESPACE}}' => module_base_namespace() .'\\' . $this->getModuleName(),
238
+            '{{MODULE_NAMESPACE}}' => module_base_namespace() . '\\' . $this->getModuleName(),
239 239
             '{{MODULE_NAME}}' => $this->getModuleName(),
240 240
         ];
241 241
 
Please login to merge, or discard this patch.
src/Middleware/MiddlewareManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
         $currentMiddleware = $this->getMiddleware($request, $response);
61 61
 
62
-        list($request, $response) = $currentMiddleware->apply($request, $response, function ($request, $response) {
62
+        list($request, $response) = $currentMiddleware->apply($request, $response, function($request, $response) {
63 63
             next($this->middlewares);
64 64
             return [$request, $response];
65 65
         });
Please login to merge, or discard this patch.