@@ -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__; |
@@ -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__; |
@@ -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__; |
@@ -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__; |
@@ -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__; |
@@ -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__; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * private function to load a gallery by the slug. |
| 84 | 84 | * Will be used when loading gallery shortcodes |
| 85 | - * @param $slug |
|
| 85 | + * @param string $slug |
|
| 86 | 86 | */ |
| 87 | 87 | private function load_by_slug( $slug ) { |
| 88 | 88 | if ( ! empty( $slug ) ) { |
@@ -144,6 +144,9 @@ discard block |
||
| 144 | 144 | return $gallery; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param boolean $default |
|
| 149 | + */ |
|
| 147 | 150 | function get_meta( $key, $default ) { |
| 148 | 151 | if ( ! is_array( $this->settings ) ) { |
| 149 | 152 | return $default; |
@@ -251,7 +254,7 @@ discard block |
||
| 251 | 254 | /** |
| 252 | 255 | * @deprecated 1.3.0 This is now moved into the datasource implementation |
| 253 | 256 | * |
| 254 | - * @return int|mixed|string |
|
| 257 | + * @return integer |
|
| 255 | 258 | */ |
| 256 | 259 | public function find_featured_attachment_id() { |
| 257 | 260 | _deprecated_function( __FUNCTION__, '1.3.0' ); |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | * @author Vova Feldman (@svovaf) |
| 1143 | 1143 | * @since 1.0.1 |
| 1144 | 1144 | * |
| 1145 | - * @param $plugin_file |
|
| 1145 | + * @param string $plugin_file |
|
| 1146 | 1146 | * |
| 1147 | 1147 | * @return false|Freemius |
| 1148 | 1148 | */ |
@@ -2973,10 +2973,16 @@ discard block |
||
| 2973 | 2973 | return ! empty( $options[ $key ] ) ? $options[ $key ] : $default; |
| 2974 | 2974 | } |
| 2975 | 2975 | |
| 2976 | + /** |
|
| 2977 | + * @param string $key |
|
| 2978 | + */ |
|
| 2976 | 2979 | private function get_bool_option( &$options, $key, $default = false ) { |
| 2977 | 2980 | return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default; |
| 2978 | 2981 | } |
| 2979 | 2982 | |
| 2983 | + /** |
|
| 2984 | + * @param string $key |
|
| 2985 | + */ |
|
| 2980 | 2986 | private function get_numeric_option( &$options, $key, $default = false ) { |
| 2981 | 2987 | return isset( $options[ $key ] ) && is_numeric( $options[ $key ] ) ? $options[ $key ] : $default; |
| 2982 | 2988 | } |
@@ -5111,7 +5117,7 @@ discard block |
||
| 5111 | 5117 | * @author Vova Feldman (@svovaf) |
| 5112 | 5118 | * @since 1.0.4 |
| 5113 | 5119 | * |
| 5114 | - * @return mixed Plugin secret key. |
|
| 5120 | + * @return string Plugin secret key. |
|
| 5115 | 5121 | */ |
| 5116 | 5122 | function get_secret_key() { |
| 5117 | 5123 | return $this->_plugin->secret_key; |
@@ -6704,7 +6710,7 @@ discard block |
||
| 6704 | 6710 | * @author Vova Feldman (@svovaf) |
| 6705 | 6711 | * @since 1.2.0 |
| 6706 | 6712 | * |
| 6707 | - * @param array|string $actions Collection of AJAX actions. |
|
| 6713 | + * @param string $actions Collection of AJAX actions. |
|
| 6708 | 6714 | * @param string $slug |
| 6709 | 6715 | * |
| 6710 | 6716 | * @return bool |
@@ -7261,7 +7267,7 @@ discard block |
||
| 7261 | 7267 | * |
| 7262 | 7268 | * @param array $override_with |
| 7263 | 7269 | * |
| 7264 | - * @return array |
|
| 7270 | + * @return string|boolean |
|
| 7265 | 7271 | */ |
| 7266 | 7272 | function get_opt_in_params( $override_with = array() ) { |
| 7267 | 7273 | $this->_logger->entrance(); |
@@ -8594,8 +8600,6 @@ discard block |
||
| 8594 | 8600 | * @since 1.0.1 |
| 8595 | 8601 | * |
| 8596 | 8602 | * @param string $tag The name of the action to be executed. |
| 8597 | - * @param mixed $arg,... Optional. Additional arguments which are passed on to the |
|
| 8598 | - * functions hooked to the action. Default empty. |
|
| 8599 | 8603 | * |
| 8600 | 8604 | * @uses do_action() |
| 8601 | 8605 | */ |
@@ -9405,7 +9409,7 @@ discard block |
||
| 9405 | 9409 | * @author Vova Feldman (@svovaf) |
| 9406 | 9410 | * @since 1.0.5 |
| 9407 | 9411 | * |
| 9408 | - * @param bool|number $plugin_id |
|
| 9412 | + * @param boolean $plugin_id |
|
| 9409 | 9413 | * @param bool $flush Since 1.1.7.3 |
| 9410 | 9414 | * |
| 9411 | 9415 | * @return bool|FS_Plugin_Tag |
@@ -11613,8 +11617,8 @@ discard block |
||
| 11613 | 11617 | * @author Vova Feldman (@svovaf) |
| 11614 | 11618 | * @since 1.0.0 |
| 11615 | 11619 | * |
| 11616 | - * @param $label |
|
| 11617 | - * @param $url |
|
| 11620 | + * @param string $label |
|
| 11621 | + * @param string $url |
|
| 11618 | 11622 | * @param bool $external |
| 11619 | 11623 | * @param int $priority |
| 11620 | 11624 | * @param bool $key |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | private static $CNT = 0; |
| 38 | 38 | private static $_HOOKED_FOOTER = false; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $id |
|
| 42 | + */ |
|
| 40 | 43 | private function __construct( $id, $on = false, $echo = false ) { |
| 41 | 44 | $this->_id = $id; |
| 42 | 45 | |
@@ -142,6 +145,9 @@ discard block |
||
| 142 | 145 | return $this->_file_start; |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + /** |
|
| 149 | + * @param boolean $wrapper |
|
| 150 | + */ |
|
| 145 | 151 | private function _log( &$message, $type = 'log', $wrapper ) { |
| 146 | 152 | if ( ! $this->is_on() ) { |
| 147 | 153 | return; |
@@ -193,6 +199,9 @@ discard block |
||
| 193 | 199 | } |
| 194 | 200 | } |
| 195 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $message |
|
| 204 | + */ |
|
| 196 | 205 | function log( $message, $wrapper = false ) { |
| 197 | 206 | $this->_log( $message, 'log', $wrapper ); |
| 198 | 207 | } |
@@ -201,10 +210,16 @@ discard block |
||
| 201 | 210 | $this->_log( $message, 'info', $wrapper ); |
| 202 | 211 | } |
| 203 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $message |
|
| 215 | + */ |
|
| 204 | 216 | function warn( $message, $wrapper = false ) { |
| 205 | 217 | $this->_log( $message, 'warn', $wrapper ); |
| 206 | 218 | } |
| 207 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $message |
|
| 222 | + */ |
|
| 208 | 223 | function error( $message, $wrapper = false ) { |
| 209 | 224 | $this->_log( $message, 'error', $wrapper ); |
| 210 | 225 | } |