Completed
Push — master ( c5fe12...31a465 )
by Arman
30s queued 14s
created
src/Libraries/Module/ModuleManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use Quantum\Di\Di;
6 6
 use Quantum\Libraries\Storage\FileSystem;
7 7
 
8
-class ModuleManager{
8
+class ModuleManager {
9 9
 
10 10
     protected $fs;
11 11
     protected $optionEnabled;
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     private $modulePath;
17 17
     private $templatePath;
18 18
 
19
-    function __construct(string $moduleName, string $template, string $demo, $enabled){
19
+    function __construct(string $moduleName, string $template, string $demo, $enabled) {
20 20
         $this->moduleName = $moduleName;
21 21
 
22 22
         $this->template = $template;
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $modules = require $modulesConfigPath;
46 46
 
47 47
         foreach ($modules['modules'] as $module => $options) {
48
-            if ($module == $this->moduleName  || $options['prefix'] == strtolower($this->moduleName)) {
48
+            if ($module == $this->moduleName || $options['prefix'] == strtolower($this->moduleName)) {
49 49
                 throw new \Exception("A module or prefix named '$this->moduleName' already exists");
50 50
             }
51 51
         }
Please login to merge, or discard this patch.