@@ -127,7 +127,7 @@ |
||
| 127 | 127 | return false; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - return (float)constant($class.'::VERSION') === (float)$this->version; |
|
| 130 | + return (float) constant($class . '::VERSION') === (float) $this->version; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | } |
| 134 | 134 | \ No newline at end of file |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | $route = $app->sys_name . '/index'; |
| 30 | 30 | $icoStatus = null; |
| 31 | 31 | $actions = \App::$View->render('macro/app_actions', ['controller' => $app->sys_name]); |
| 32 | - if ((int)$app->disabled !== 0) { |
|
| 32 | + if ((int) $app->disabled !== 0) { |
|
| 33 | 33 | $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>'; |
| 34 | 34 | } elseif ($app->checkVersion() !== true) { |
| 35 | 35 | $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>'; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function before() |
| 40 | 40 | { |
| 41 | 41 | foreach ($this->_apps as $app) { |
| 42 | - $this->_definedControllers[] = (string)$app->sys_name; |
|
| 42 | + $this->_definedControllers[] = (string) $app->sys_name; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | parent::before(); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | // get ext version |
| 80 | - $cVersion = (float)constant($cPath . '::VERSION'); |
|
| 80 | + $cVersion = (float) constant($cPath . '::VERSION'); |
|
| 81 | 81 | if ($cVersion < 0.1) { |
| 82 | 82 | $cVersion = 0.1; |
| 83 | 83 | } |