@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @param string $content |
16 | - * @return mixed |
|
16 | + * @return string |
|
17 | 17 | */ |
18 | 18 | function href_nofollow($content) { |
19 | 19 | return preg_replace_callback('/<(a\s[^>]+)>/isU', 'seo_nofollow_replace', $content); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | if (!function_exists('admin_or_redirect')) { |
8 | 8 | |
9 | 9 | /** |
10 | - * @return bool |
|
10 | + * @return boolean|null |
|
11 | 11 | */ |
12 | 12 | function admin_or_redirect() { |
13 | 13 | if (PHP_SAPI == 'cli') { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @param string $perm |
46 | - * @return bool |
|
46 | + * @return boolean|null |
|
47 | 47 | */ |
48 | 48 | function cp_check_perm($perm) { |
49 | 49 | $ci = & get_instance(); |
@@ -135,6 +135,8 @@ |
||
135 | 135 | * Get value of category item |
136 | 136 | * |
137 | 137 | * @access public |
138 | + * @param string $param |
|
139 | + * @return string |
|
138 | 140 | */ |
139 | 141 | public function GetValue($cat_id, $param) { |
140 | 142 | if ($this->unsorted_arr == FALSE) { |
@@ -335,7 +335,7 @@ |
||
335 | 335 | } |
336 | 336 | |
337 | 337 | /** |
338 | - * @return array |
|
338 | + * @return string |
|
339 | 339 | */ |
340 | 340 | public function get_default_lang() { |
341 | 341 | if ($this->db) { |
@@ -621,7 +621,7 @@ |
||
621 | 621 | * @access public |
622 | 622 | * @param string $page_id |
623 | 623 | * @param bool $show_messages |
624 | - * @return bool |
|
624 | + * @return boolean|null |
|
625 | 625 | */ |
626 | 626 | public function delete($page_id, $show_messages = TRUE) { |
627 | 627 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Check if widgets folder is writable |
82 | - * @return null|false |
|
82 | + * @return boolean |
|
83 | 83 | */ |
84 | 84 | private function _is_writable() { |
85 | 85 | $this->db->where('s_name', 'main'); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | - * @return bool |
|
99 | + * @return null|false |
|
100 | 100 | */ |
101 | 101 | public function create() { |
102 | 102 | if (!$this->_is_writable()) { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | * @param integer $id |
337 | 337 | * @param bool|FALSE $update_info |
338 | 338 | * @param null|string $locale |
339 | - * @return bool |
|
339 | + * @return false|null |
|
340 | 340 | */ |
341 | 341 | public function update_widget($id, $update_info = FALSE, $locale = NULL) { |
342 | 342 | //cp_check_perm('widget_access_settings'); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @param string $item |
99 | - * @return string|integer|float|array|boolean |
|
99 | + * @return integer |
|
100 | 100 | * @access public |
101 | 101 | * @author |
102 | 102 | * @copyright |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | /** |
109 | 109 | * @param string $item |
110 | - * @param string|integer|float $value |
|
110 | + * @param boolean|string $value |
|
111 | 111 | * @return assetManager |
112 | 112 | * @access public |
113 | 113 | * @copyright ImageCMS (c) 2013, Roman <[email protected]> |
@@ -547,8 +547,8 @@ discard block |
||
547 | 547 | |
548 | 548 | /** |
549 | 549 | * Checks if file exists in any of modules dirs. If exists returns its path |
550 | - * @param string|array $files example: ['menu/assets/css/style.css'] |
|
551 | - * @return string|boolean returns file path or FALSE |
|
550 | + * @param string[] $files example: ['menu/assets/css/style.css'] |
|
551 | + * @return string|false returns file path or FALSE |
|
552 | 552 | */ |
553 | 553 | private function getModuleFilePath($files, $noExt = true) { |
554 | 554 | if (is_string($files)) { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param $storage |
|
134 | + * @param MetaStorage $storage |
|
135 | 135 | */ |
136 | 136 | public function setStorage($storage) { |
137 | 137 | |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * @param string $string |
327 | 327 | * @param integer $part |
328 | - * @return array |
|
328 | + * @return string |
|
329 | 329 | */ |
330 | 330 | public function getMorph($string, $part) { |
331 | 331 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * @return CoreCategory |
|
32 | + * @return TreeItemInterface |
|
33 | 33 | */ |
34 | 34 | public function getWrappedModel() { |
35 | 35 | return $this->model; |