Passed
Push — master ( aa091f...82ff8b )
by 世昌
02:22
created
suda/src/application/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getFullName(): string
111 111
     {
112
-        return $this->getName() . ':' . $this->getVersion();
112
+        return $this->getName().':'.$this->getVersion();
113 113
     }
114 114
 
115 115
     /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function getUriSafeName(): string
121 121
     {
122
-        return $this->getName() . '/' . $this->getVersion();
122
+        return $this->getName().'/'.$this->getVersion();
123 123
     }
124 124
 
125 125
     /**
Please login to merge, or discard this patch.
suda/src/application/loader/ApplicationLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         foreach ($this->application->getModules() as $name => $module) {
54 54
             if ($module->getStatus() === Module::REACHABLE) {
55
-                call_user_func([$this->moduleLoader[$name],'toReachable']);
55
+                call_user_func([$this->moduleLoader[$name], 'toReachable']);
56 56
             }
57 57
         }
58 58
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function getDataSourceGroup(string $groupName):DataSource
95 95
     {
96
-        $group = $groupName === 'default' ? '': '-'. $groupName;
96
+        $group = $groupName === 'default' ? '' : '-'.$groupName;
97 97
         $dataSourceConfigPath = $this->application->getResource()->getConfigResourcePath('config/data-source'.$group);
98 98
         $dataSource = new DataSource;
99 99
         $observer = new DebugObserver($this->application->debug());
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
     protected function registerModule()
163 163
     {
164
-        $extractPath = SUDA_DATA .'/extract-module';
164
+        $extractPath = SUDA_DATA.'/extract-module';
165 165
         FileSystem::make($extractPath);
166 166
         foreach ($this->application->getModulePaths() as $path) {
167 167
             $this->registerModuleFrom($path, $extractPath);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         }
188 188
         $config = $config ?? [];
189 189
         $moduleNames = array_keys($modules->all());
190
-        $load  = $config['load'] ?? $moduleNames;
190
+        $load = $config['load'] ?? $moduleNames;
191 191
         $this->loadModules($modules, $load);
192 192
         $this->setModuleActive($modules, $config['active'] ?? $load);
193 193
         $this->setModuleReachable($modules, $config['reachable'] ?? $load);
Please login to merge, or discard this patch.