Passed
Push — master ( ca9076...371408 )
by 世昌
01:52
created
nebula/src/application/route/GroupRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function add(?string $module = null, string $name, RouteMatcher $router)
57 57
     {
58
-        $module =  $module ?: $this->default;
58
+        $module = $module ?: $this->default;
59 59
         if (\array_key_exists($module, $this->routes)) {
60 60
             $this->routes[$module]->add($name, $router);
61 61
         } else {
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
      * @param string $name
89 89
      * @return RouteMatcher|null
90 90
      */
91
-    public function find(?string $module = null, string $name):?RouteMatcher
91
+    public function find(?string $module = null, string $name): ?RouteMatcher
92 92
     {
93
-        $module =  $module ?: $this->default;
93
+        $module = $module ?: $this->default;
94 94
         if (\array_key_exists($module, $this->routes)) {
95 95
             return $this->routes[$module]->get($name);
96 96
         }
Please login to merge, or discard this patch.
nebula/src/application/Application.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@
 block discarded – undo
146 146
      */
147 147
     protected function registerModuleManager()
148 148
     {
149
-       $this->manager = new Manager($this);
150
-       $this->manager->registerModule();
149
+        $this->manager = new Manager($this);
150
+        $this->manager->registerModule();
151 151
     }
152 152
 
153 153
     
Please login to merge, or discard this patch.
nebula/src/application/module/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     public function registerModule()
118 118
     {
119 119
         $scan = $this->getApp()->getConfig('app.module.scan-path', []);
120
-        $cache = $this->getApp()->getDataPath() .'/module-cache';
120
+        $cache = $this->getApp()->getDataPath().'/module-cache';
121 121
         FileSystem::makes($cache);
122 122
         foreach (Builder::scan($scan, $cache) as $module) {
123 123
             $this->finder->add($module->getName(), $module->getVersion());
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      * @param string $name
134 134
      * @return Module|null
135 135
      */     
136
-    public function find(string $name):?Module {
136
+    public function find(string $name): ?Module {
137 137
         $fullName = $this->finder->getFullName($name);
138 138
         return $this->module[$fullName] ?? null;
139 139
     }
Please login to merge, or discard this patch.