Passed
Push — master ( 0206ad...aeb2a3 )
by Mihail
03:59
created
Apps/Model/Admin/Application/FormInstall.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.