@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ffcms\Core\App; |
6 | 6 | use Ffcms\Core\Arch\Model; |
7 | -use Ffcms\Core\Helper\Type\Obj; |
|
8 | 7 | use Ffcms\Core\Helper\Type\Str; |
9 | 8 | use Ffcms\Core\Interfaces\iUser; |
10 | 9 |
@@ -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>'; |
@@ -33,8 +33,8 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * Validation rules |
|
37 | - */ |
|
36 | + * Validation rules |
|
37 | + */ |
|
38 | 38 | public function rules() |
39 | 39 | { |
40 | 40 | return [ |
@@ -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 | } |