@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * private function to load a gallery by the slug. |
| 83 | 83 | * Will be used when loading gallery shortcodes |
| 84 | - * @param $slug |
|
| 84 | + * @param string $slug |
|
| 85 | 85 | */ |
| 86 | 86 | private function load_by_slug( $slug ) { |
| 87 | 87 | if ( ! empty( $slug ) ) { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** |
| 251 | 251 | * @deprecated 1.3.0 This is now moved into the datasource implementation |
| 252 | 252 | * |
| 253 | - * @return int|mixed|string |
|
| 253 | + * @return integer |
|
| 254 | 254 | */ |
| 255 | 255 | public function find_featured_attachment_id() { |
| 256 | 256 | _deprecated_function( __FUNCTION__, '1.3.0' ); |
@@ -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__; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * FooGallery_Admin_Gallery_MetaBox_Settings_Helper constructor. |
| 28 | - * @param $gallery FooGallery |
|
| 28 | + * @param FooGallery $gallery FooGallery |
|
| 29 | 29 | */ |
| 30 | 30 | function __construct($gallery) { |
| 31 | 31 | $this->gallery = $gallery; |
@@ -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 |