@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Get label value by variable name |
| 32 | 32 | * @param string $param |
| 33 | - * @return mixed |
|
| 33 | + * @return string |
|
| 34 | 34 | */ |
| 35 | 35 | final public function getLabel($param) |
| 36 | 36 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Set attribute labels for model variables |
| 75 | - * @return array |
|
| 75 | + * @return string |
|
| 76 | 76 | */ |
| 77 | 77 | public function labels() |
| 78 | 78 | { |
@@ -226,7 +226,7 @@ |
||
| 226 | 226 | /** |
| 227 | 227 | * Show custom code library link |
| 228 | 228 | * @param string $type - js or css allowed |
| 229 | - * @return array|null|string |
|
| 229 | + * @return null|string |
|
| 230 | 230 | */ |
| 231 | 231 | public function showCodeLink($type) |
| 232 | 232 | { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $themeConfig = App::$Properties->get('theme'); |
| 39 | 39 | $this->themePath = root . DIRECTORY_SEPARATOR . 'Apps' . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . env_name; |
| 40 | 40 | if (isset($themeConfig[env_name]) && Str::length($themeConfig[env_name]) > 0) { |
| 41 | - $this->themePath .= DIRECTORY_SEPARATOR . $themeConfig[env_name]; |
|
| 41 | + $this->themePath .= DIRECTORY_SEPARATOR . $themeConfig[env_name]; |
|
| 42 | 42 | } else { |
| 43 | 43 | $this->themePath .= DIRECTORY_SEPARATOR . 'default'; |
| 44 | 44 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ffcms\Core\App; |
| 6 | 6 | use Ffcms\Core\Exception\NativeException; |
| 7 | -use Ffcms\Core\Exception\NotFoundException; |
|
| 8 | 7 | use Ffcms\Core\Exception\SyntaxException; |
| 9 | 8 | use Ffcms\Core\Helper\FileSystem\Directory; |
| 10 | 9 | use Ffcms\Core\Helper\FileSystem\File; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Filter ['object', 'phone'] |
| 145 | 145 | * @param string $object |
| 146 | - * @return bool|int |
|
| 146 | + * @return boolean |
|
| 147 | 147 | */ |
| 148 | 148 | public static function phone($object) |
| 149 | 149 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * Direct preg_match expression. Filter ['object', 'direct_match', '/^[A-Z]/*$'] |
| 198 | 198 | * @param $object |
| 199 | 199 | * @param $value |
| 200 | - * @return bool|int |
|
| 200 | + * @return boolean |
|
| 201 | 201 | */ |
| 202 | 202 | public static function direct_match($object, $value) |
| 203 | 203 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * Regular expression validation rule ['object', 'reg_match', '/^[A-Z]/*$'] |
| 219 | 219 | * @param $object |
| 220 | 220 | * @param $value |
| 221 | - * @return bool|int |
|
| 221 | + * @return boolean |
|
| 222 | 222 | */ |
| 223 | 223 | public static function reg_match($object, $value) |
| 224 | 224 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Ffcms\Core\Helper\HTML\Bootstrap; |
| 4 | 4 | |
| 5 | -use Ffcms\Core\App; |
|
| 6 | 5 | use Ffcms\Core\Helper\Type\Arr; |
| 7 | 6 | use Ffcms\Core\Helper\HTML\Listing; |
| 8 | 7 | use Ffcms\Core\Helper\Type\Obj; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Ffcms\Core\Helper\HTML\Bootstrap; |
| 4 | 4 | |
| 5 | -use Ffcms\Core\App; |
|
| 6 | 5 | use Ffcms\Core\Helper\Type\Arr; |
| 7 | 6 | use Ffcms\Core\Helper\HTML\Listing; |
| 8 | 7 | use Ffcms\Core\Helper\Type\Obj; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @param string|null $add |
| 19 | 19 | * @param array $params |
| 20 | 20 | * @param bool $encode |
| 21 | - * @return null|string |
|
| 21 | + * @return string |
|
| 22 | 22 | */ |
| 23 | 23 | public static function to($controller_action, $id = null, $add = null, array $params = null, $encode = true) |
| 24 | 24 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * Get available languages in the filesystem |
| 115 | - * @return array |
|
| 115 | + * @return string[] |
|
| 116 | 116 | */ |
| 117 | 117 | public function getAvailableLangs() |
| 118 | 118 | { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * Get lexer |
| 129 | - * @return static |
|
| 129 | + * @return Lexer |
|
| 130 | 130 | */ |
| 131 | 131 | public function lexer() |
| 132 | 132 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | |
| 240 | 240 | /** |
| 241 | 241 | * Get current $id argument for controller action |
| 242 | - * @return string|null |
|
| 242 | + * @return string |
|
| 243 | 243 | */ |
| 244 | 244 | public function getID() |
| 245 | 245 | { |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | 250 | * Get current $add argument for controller action |
| 251 | - * @return string|null |
|
| 251 | + * @return string |
|
| 252 | 252 | */ |
| 253 | 253 | public function getAdd() |
| 254 | 254 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | 259 | * Get callback class alias if exist |
| 260 | - * @return bool|string |
|
| 260 | + * @return boolean |
|
| 261 | 261 | */ |
| 262 | 262 | public function getCallbackAlias() |
| 263 | 263 | { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Add exception into debug bar and stop execute |
| 58 | - * @param $e |
|
| 58 | + * @param \Ffcms\Core\Exception\TemplateException $e |
|
| 59 | 59 | * @throws \DebugBar\DebugBarException |
| 60 | 60 | */ |
| 61 | 61 | public function addException($e) |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | // initialize new DOM model |
| 32 | 32 | $dom = new Dom(); |
| 33 | 33 | // return DOM-HTML, build based on closures! |
| 34 | - return $dom->{$elements['type']}(function () use ($dom, $elements) { |
|
| 34 | + return $dom->{$elements['type']}(function() use ($dom, $elements) { |
|
| 35 | 35 | // prepare output avg variable |
| 36 | 36 | $liHtml = null; |
| 37 | 37 | // get active order level |
@@ -70,13 +70,13 @@ discard block |
||
| 70 | 70 | $item['linkProperty']['href'] = self::convertLink($item['link']); |
| 71 | 71 | |
| 72 | 72 | // build a href link inside li element |
| 73 | - $itemContent = $dom->a(function () use ($itemContent) { |
|
| 73 | + $itemContent = $dom->a(function() use ($itemContent) { |
|
| 74 | 74 | return $itemContent; |
| 75 | 75 | }, $item['linkProperty']); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // build output li tag |
| 79 | - $liHtml .= $dom->li(function () use ($elements, $itemContent) { |
|
| 79 | + $liHtml .= $dom->li(function() use ($elements, $itemContent) { |
|
| 80 | 80 | return $itemContent; |
| 81 | 81 | }, $itemProperty); |
| 82 | 82 | } |