@@ -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 | } |
@@ -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 |
@@ -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 | */ |
@@ -117,6 +117,9 @@ discard block |
||
117 | 117 | ( ( false === strpos( $pPath, '.' ) ) ? '.' . self::FORMAT : '' ) . $query; |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $pCanonizedPath |
|
122 | + */ |
|
120 | 123 | abstract function MakeRequest( $pCanonizedPath, $pMethod = 'GET', $pParams = array() ); |
121 | 124 | |
122 | 125 | /** |
@@ -149,6 +152,9 @@ discard block |
||
149 | 152 | return $result; |
150 | 153 | } |
151 | 154 | |
155 | + /** |
|
156 | + * @param string $pPath |
|
157 | + */ |
|
152 | 158 | public function Api( $pPath, $pMethod = 'GET', $pParams = array() ) { |
153 | 159 | return $this->_Api( $this->CanonizePath( $pPath ), $pMethod, $pParams ); |
154 | 160 | } |
@@ -523,6 +523,12 @@ |
||
523 | 523 | return $fields; |
524 | 524 | } |
525 | 525 | |
526 | + /** |
|
527 | + * @param string $key |
|
528 | + * @param string $default |
|
529 | + * |
|
530 | + * @return string |
|
531 | + */ |
|
526 | 532 | function get_setting_from_gallery( $gallery, $key, $default ) { |
527 | 533 | global $current_foogallery; |
528 | 534 |