@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | public function before() |
44 | 44 | { |
45 | 45 | foreach ($this->_apps as $app) { |
46 | - $this->_definedControllers[] = (string)$app->sys_name; |
|
46 | + $this->_definedControllers[] = (string) $app->sys_name; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | parent::before(); |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | public function make() |
80 | 80 | { |
81 | 81 | $cName = ucfirst(Str::lowerCase($this->sysname)); |
82 | - $cPath = 'Apps\Controller\Admin\\' . $cName; |
|
82 | + $cPath = 'Apps\Controller\Admin\\'.$cName; |
|
83 | 83 | // if object class is not loaded - prevent install |
84 | - if (!class_exists($cPath) || !defined($cPath . '::VERSION')) { |
|
84 | + if (!class_exists($cPath) || !defined($cPath.'::VERSION')) { |
|
85 | 85 | return false; |
86 | 86 | } |
87 | 87 | |
88 | 88 | // get ext version |
89 | - $cVersion = constant($cPath . '::VERSION'); |
|
89 | + $cVersion = constant($cPath.'::VERSION'); |
|
90 | 90 | if ($cVersion === null || Str::likeEmpty($cVersion)) { |
91 | 91 | $cVersion = '1.0.0'; |
92 | 92 | } |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | // callback to install method in extension |
104 | 104 | if (method_exists($cPath, 'install')) { |
105 | - call_user_func($cPath . '::install'); |
|
105 | + call_user_func($cPath.'::install'); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | return true; |