@@ -278,6 +278,11 @@ |
||
| 278 | 278 | return $options; |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | + /** |
|
| 282 | + * @param string $setting_id |
|
| 283 | + * @param string $argument_name |
|
| 284 | + * @param string $default_value |
|
| 285 | + */ |
|
| 281 | 286 | private function get_foogallery_argument( $gallery, $setting_id, $argument_name, $default_value ) { |
| 282 | 287 | global $current_foogallery_arguments; |
| 283 | 288 | |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | class FS_Customizer_Support_Section extends WP_Customize_Section { |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $id |
|
| 23 | + */ |
|
| 21 | 24 | function __construct( $manager, $id, $args = array() ) { |
| 22 | 25 | $manager->register_section_type( 'FS_Customizer_Support_Section' ); |
| 23 | 26 | |
@@ -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 | } |
@@ -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 |
@@ -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 | } |
@@ -1445,7 +1445,7 @@ discard block |
||
| 1445 | 1445 | * @author Vova Feldman (@svovaf) |
| 1446 | 1446 | * @since 1.0.1 |
| 1447 | 1447 | * |
| 1448 | - * @param $plugin_file |
|
| 1448 | + * @param string $plugin_file |
|
| 1449 | 1449 | * |
| 1450 | 1450 | * @return false|Freemius |
| 1451 | 1451 | */ |
@@ -3399,10 +3399,18 @@ discard block |
||
| 3399 | 3399 | return ! empty( $options[ $key ] ) ? $options[ $key ] : $default; |
| 3400 | 3400 | } |
| 3401 | 3401 | |
| 3402 | + /** |
|
| 3403 | + * @param string $key |
|
| 3404 | + */ |
|
| 3402 | 3405 | private function get_bool_option( &$options, $key, $default = false ) {
|
| 3403 | 3406 | return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default; |
| 3404 | 3407 | } |
| 3405 | 3408 | |
| 3409 | + /** |
|
| 3410 | + * @param string $key |
|
| 3411 | + * |
|
| 3412 | + * @return string[] |
|
| 3413 | + */ |
|
| 3406 | 3414 | private function get_numeric_option( &$options, $key, $default = false ) {
|
| 3407 | 3415 | return isset( $options[ $key ] ) && is_numeric( $options[ $key ] ) ? $options[ $key ] : $default; |
| 3408 | 3416 | } |
@@ -5752,7 +5760,7 @@ discard block |
||
| 5752 | 5760 | * @author Vova Feldman (@svovaf) |
| 5753 | 5761 | * @since 1.0.4 |
| 5754 | 5762 | * |
| 5755 | - * @return mixed Plugin secret key. |
|
| 5763 | + * @return string Plugin secret key. |
|
| 5756 | 5764 | */ |
| 5757 | 5765 | function get_secret_key() {
|
| 5758 | 5766 | return $this->_plugin->secret_key; |
@@ -7690,7 +7698,7 @@ discard block |
||
| 7690 | 7698 | * @author Vova Feldman (@svovaf) |
| 7691 | 7699 | * @since 1.2.0 |
| 7692 | 7700 | * |
| 7693 | - * @param array|string $actions Collection of AJAX actions. |
|
| 7701 | + * @param string $actions Collection of AJAX actions. |
|
| 7694 | 7702 | * @param number|null $module_id |
| 7695 | 7703 | * |
| 7696 | 7704 | * @return bool |
@@ -9905,9 +9913,6 @@ discard block |
||
| 9905 | 9913 | * @since 1.0.1 |
| 9906 | 9914 | * |
| 9907 | 9915 | * @param string $tag The name of the action to be executed. |
| 9908 | - * @param mixed $arg,... Optional. Additional arguments which are passed on to the |
|
| 9909 | - * functions hooked to the action. Default empty. |
|
| 9910 | - * |
|
| 9911 | 9916 | * @uses do_action() |
| 9912 | 9917 | */ |
| 9913 | 9918 | function do_action( $tag, $arg = '' ) {
|
@@ -10738,7 +10743,7 @@ discard block |
||
| 10738 | 10743 | * @author Vova Feldman (@svovaf) |
| 10739 | 10744 | * @since 1.0.5 |
| 10740 | 10745 | * |
| 10741 | - * @param bool|number $plugin_id |
|
| 10746 | + * @param boolean $plugin_id |
|
| 10742 | 10747 | * @param bool $flush Since 1.1.7.3 |
| 10743 | 10748 | * @param int $expiration Since 1.2.2.7 |
| 10744 | 10749 | * |
@@ -13102,8 +13107,8 @@ discard block |
||
| 13102 | 13107 | * @author Vova Feldman (@svovaf) |
| 13103 | 13108 | * @since 1.0.0 |
| 13104 | 13109 | * |
| 13105 | - * @param $label |
|
| 13106 | - * @param $url |
|
| 13110 | + * @param string $label |
|
| 13111 | + * @param string $url |
|
| 13107 | 13112 | * @param bool $external |
| 13108 | 13113 | * @param int $priority |
| 13109 | 13114 | * @param bool $key |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * @param \FS_Scope_Entity $entity |
| 68 | - * @param int|bool $timestamp |
|
| 68 | + * @param boolean $timestamp |
|
| 69 | 69 | * @param string $action |
| 70 | 70 | * |
| 71 | 71 | * @return array |