@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * @param bool $exit If true, exit after redirect (Since 1.2.1.5). |
| 51 | 51 | * @param int $status Status code to use. |
| 52 | 52 | * |
| 53 | - * @return bool False if $location is not set |
|
| 53 | + * @return null|boolean False if $location is not set |
|
| 54 | 54 | */ |
| 55 | 55 | function fs_redirect( $location, $exit = true, $status = 302 ) { |
| 56 | 56 | global $is_IIS; |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | * @param string $tag The name of the filter hook. |
| 479 | 479 | * @param mixed $value The value on which the filters hooked to `$tag` are applied on. |
| 480 | 480 | * |
| 481 | - * @return mixed The filtered value after all hooked functions are applied to it. |
|
| 481 | + * @return string|boolean The filtered value after all hooked functions are applied to it. |
|
| 482 | 482 | * |
| 483 | 483 | * @uses apply_filters() |
| 484 | 484 | */ |
@@ -121,6 +121,10 @@ discard block |
||
| 121 | 121 | return self::$_instances[ $key ]; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $module_type |
|
| 126 | + * @param string $module_unique_affix |
|
| 127 | + */ |
|
| 124 | 128 | protected function __construct( $module_id, $module_type, $module_unique_affix ) { |
| 125 | 129 | $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_admin_menu', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK ); |
| 126 | 130 | |
@@ -133,10 +137,16 @@ discard block |
||
| 133 | 137 | |
| 134 | 138 | #region Helpers |
| 135 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $key |
|
| 142 | + */ |
|
| 136 | 143 | private function get_option( &$options, $key, $default = false ) { |
| 137 | 144 | return ! empty( $options[ $key ] ) ? $options[ $key ] : $default; |
| 138 | 145 | } |
| 139 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $key |
|
| 149 | + */ |
|
| 140 | 150 | private function get_bool_option( &$options, $key, $default = false ) { |
| 141 | 151 | return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default; |
| 142 | 152 | } |
@@ -57,6 +57,9 @@ discard block |
||
| 57 | 57 | return self::$_instances[ $id ]; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + /** |
|
| 61 | + * @param string $id |
|
| 62 | + */ |
|
| 60 | 63 | protected function __construct( $id, $title = '', $module_unique_affix = '' ) { |
| 61 | 64 | $this->_id = $id; |
| 62 | 65 | $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $this->_id . '_data', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK ); |
@@ -267,7 +270,7 @@ discard block |
||
| 267 | 270 | * @author Vova Feldman (@svovaf) |
| 268 | 271 | * @since 1.0.9 |
| 269 | 272 | * |
| 270 | - * @param $id |
|
| 273 | + * @param string $id |
|
| 271 | 274 | * |
| 272 | 275 | * @return bool |
| 273 | 276 | */ |
@@ -81,6 +81,10 @@ discard block |
||
| 81 | 81 | return self::$_instances[ $key ]; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $id |
|
| 86 | + * @param string $secondary_id |
|
| 87 | + */ |
|
| 84 | 88 | protected function __construct( $id, $secondary_id ) { |
| 85 | 89 | $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $secondary_id . '_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK ); |
| 86 | 90 | |
@@ -205,7 +209,7 @@ discard block |
||
| 205 | 209 | * @since 1.0.7 |
| 206 | 210 | * |
| 207 | 211 | * @param string $key |
| 208 | - * @param mixed $default |
|
| 212 | + * @param false|null $default |
|
| 209 | 213 | * |
| 210 | 214 | * @return bool|\FS_Plugin |
| 211 | 215 | */ |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @author Vova Feldman (@svovaf) |
| 144 | 144 | * @since 1.0.6 |
| 145 | 145 | * |
| 146 | - * @param bool|FS_Plugin $module |
|
| 146 | + * @param FS_Plugin $module |
|
| 147 | 147 | * @param bool $flush |
| 148 | 148 | * |
| 149 | 149 | * @return bool|\FS_Plugin |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 21 | 21 | * @param $extensions |
| 22 | 22 | * |
| 23 | - * @return array |
|
| 23 | + * @return string[] |
|
| 24 | 24 | */ |
| 25 | 25 | function register_myself( $extensions ) { |
| 26 | 26 | $extensions[] = __FILE__; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 40 | 40 | * @param $extensions |
| 41 | 41 | * |
| 42 | - * @return array |
|
| 42 | + * @return string[] |
|
| 43 | 43 | */ |
| 44 | 44 | function register_myself( $extensions ) {
|
| 45 | 45 | $extensions[] = __FILE__; |
@@ -31,6 +31,10 @@ |
||
| 31 | 31 | var $errors = false; |
| 32 | 32 | |
| 33 | 33 | #Total items |
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @param integer $value |
|
| 37 | + */ |
|
| 34 | 38 | function items( $value ) { |
| 35 | 39 | $this->item_count = (int) $value; |
| 36 | 40 | } |