@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * Get single row by defined type and sys_name with query caching |
| 60 | 60 | * @param string $type |
| 61 | 61 | * @param string $sys_name |
| 62 | - * @return mixed|null |
|
| 62 | + * @return App |
|
| 63 | 63 | * @throws SyntaxException |
| 64 | 64 | */ |
| 65 | 65 | public static function getItem($type, $sys_name) |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | $scriptVersion = $this->getScriptVersion(); |
| 126 | 126 | |
| 127 | - return $scriptVersion === (float)$this->version; |
|
| 127 | + return $scriptVersion === (float) $this->version; |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | return false; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - return (float)constant($class . '::VERSION'); |
|
| 145 | + return (float) constant($class . '::VERSION'); |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | } |
| 149 | 149 | \ No newline at end of file |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Apps\ActiveRecord\App as AppRecord; |
| 6 | 6 | use Ffcms\Core\Arch\Model; |
| 7 | 7 | use Ffcms\Core\Exception\ForbiddenException; |
| 8 | -use Ffcms\Core\Exception\NativeException; |
|
| 9 | 8 | use Ffcms\Core\Exception\NotFoundException; |
| 10 | 9 | use Ffcms\Core\Helper\Date; |
| 11 | 10 | |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Magic method before |
|
| 32 | - */ |
|
| 31 | + * Magic method before |
|
| 32 | + */ |
|
| 33 | 33 | public function before() |
| 34 | 34 | { |
| 35 | 35 | // get full name of update object |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | $catConfigs = []; |
| 17 | 17 | foreach ($model->categoryData['configs'] as $key=>$value) { |
| 18 | - $catConfigs[$key] = (int)$value === 1; |
|
| 18 | + $catConfigs[$key] = (int) $value === 1; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | $catMeta = [ |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | </div> |
| 103 | 103 | </div> |
| 104 | 104 | <div class="meta"> |
| 105 | - <?php if ((int)$configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?> |
|
| 105 | + <?php if ((int) $configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?> |
|
| 106 | 106 | <span><i class="fa fa-tags hidden-xs"></i> |
| 107 | 107 | <?php |
| 108 | 108 | foreach ($item['tags'] as $tag) { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | [['text' => __('Name')], ['text' => $widget->getLocaleName()]], |
| 32 | 32 | [['text' => __('System name')], ['text' => $widget->sys_name]], |
| 33 | 33 | [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, DATE::FORMAT_TO_SECONDS)]], |
| 34 | - [['text' => __('Status')], ['text' => ((int)$widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' => ((int)$widget->disabled === 0) ? 'alert-success' : 'alert-danger']] |
|
| 34 | + [['text' => __('Status')], ['text' => ((int) $widget->disabled === 0) ? 'On' : 'Off'], 'property' => ['class' => ((int) $widget->disabled === 0) ? 'alert-success' : 'alert-danger']] |
|
| 35 | 35 | ] |
| 36 | 36 | ] |
| 37 | 37 | ]); ?> |