@@ -122,8 +122,8 @@ |
||
122 | 122 | * |
123 | 123 | * @param {int} $orig_width - The original width of the image. |
124 | 124 | * @param {int} $orig_height - The original height of the image. |
125 | - * @param {int} $new_width - The new width for the image or 0 to calculate it from the supplied new height and original dimensions. |
|
126 | - * @param {int} $new_height - The new height for the image or 0 to calculate it from the supplied new width and original dimensions. |
|
125 | + * @param integer $new_width - The new width for the image or 0 to calculate it from the supplied new height and original dimensions. |
|
126 | + * @param integer $new_height - The new height for the image or 0 to calculate it from the supplied new width and original dimensions. |
|
127 | 127 | * |
128 | 128 | * @return array|false - Returns an array with the width value at index 0 and the height value at index 1. |
129 | 129 | * Returns false if the original dimensions are invalid or if both the new width and height are invalid. |
@@ -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,14 +199,23 @@ 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 | } |
199 | 208 | |
209 | + /** |
|
210 | + * @param string $message |
|
211 | + */ |
|
200 | 212 | function info( $message, $wrapper = false ) { |
201 | 213 | $this->_log( $message, 'info', $wrapper ); |
202 | 214 | } |
203 | 215 | |
216 | + /** |
|
217 | + * @param string $message |
|
218 | + */ |
|
204 | 219 | function warn( $message, $wrapper = false ) { |
205 | 220 | $this->_log( $message, 'warn', $wrapper ); |
206 | 221 | } |
@@ -291,7 +291,7 @@ |
||
291 | 291 | * |
292 | 292 | * @param \FS_Plugin_Tag $new_version |
293 | 293 | * |
294 | - * @return object |
|
294 | + * @return stdClass |
|
295 | 295 | */ |
296 | 296 | function get_update_details( FS_Plugin_Tag $new_version ) { |
297 | 297 | $update = new stdClass(); |
@@ -395,7 +395,7 @@ |
||
395 | 395 | * |
396 | 396 | * @param string $key |
397 | 397 | * |
398 | - * @return bool|mixed |
|
398 | + * @return boolean |
|
399 | 399 | */ |
400 | 400 | private function is_multisite_option( $key ) { |
401 | 401 | if ( ! isset( self::$_NETWORK_OPTIONS_MAP ) ) { |
@@ -50,7 +50,7 @@ |
||
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; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @author Vova Feldman (@svovaf) |
45 | 45 | * @since 1.1.6 |
46 | 46 | * |
47 | - * @param $id |
|
47 | + * @param string $id |
|
48 | 48 | * |
49 | 49 | * @return FS_Cache_Manager |
50 | 50 | */ |
@@ -110,6 +110,10 @@ |
||
110 | 110 | return self::$_instances[ $key ]; |
111 | 111 | } |
112 | 112 | |
113 | + /** |
|
114 | + * @param string $id |
|
115 | + * @param string $secondary_id |
|
116 | + */ |
|
113 | 117 | protected function __construct( $id, $secondary_id, $network_level_or_blog_id = false ) { |
114 | 118 | $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $secondary_id . '_' . $id, WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK ); |
115 | 119 |
@@ -509,9 +509,9 @@ discard block |
||
509 | 509 | /** |
510 | 510 | * Private helper function to get the value of a setting for a gallery |
511 | 511 | * @param $gallery |
512 | - * @param $setting_id |
|
513 | - * @param $argument_name |
|
514 | - * @param $default_value |
|
512 | + * @param string $setting_id |
|
513 | + * @param string $argument_name |
|
514 | + * @param string $default_value |
|
515 | 515 | * |
516 | 516 | * @return mixed |
517 | 517 | */ |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | * @param array $image_attributes |
563 | 563 | * @param array $captions |
564 | 564 | * |
565 | - * @return mixed |
|
565 | + * @return stdClass |
|
566 | 566 | */ |
567 | 567 | public function add_json_tags( $json_object, $foogallery_attachment, $args, $anchor_attributes, $image_attributes, $captions ) { |
568 | 568 | if ( isset( $foogallery_attachment->tags ) ) { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * @param string $title |
197 | 197 | * @param string $type |
198 | 198 | * @param int|null $network_level_or_blog_id |
199 | - * @param number|null $wp_user_id |
|
199 | + * @param integer $wp_user_id |
|
200 | 200 | * @param string|null $plugin_title |
201 | 201 | * @param bool $is_network_and_blog_admins Whether or not the message should be shown both on network and |
202 | 202 | * blog admin pages. |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * @since 2.0.0 |
295 | 295 | * |
296 | 296 | * @param string $id |
297 | - * @param null|bool|int $network_level_or_blog_id When an integer, use the given blog storage. When `true` use the multisite notices (if there's a network). When `false`, use the current context blog notices. When `null`, the decision which notices manager to use (MS vs. Current S) will be handled internally and determined based on the $id and the context admin (blog admin vs. network level admin). |
|
297 | + * @param integer|null $network_level_or_blog_id When an integer, use the given blog storage. When `true` use the multisite notices (if there's a network). When `false`, use the current context blog notices. When `null`, the decision which notices manager to use (MS vs. Current S) will be handled internally and determined based on the $id and the context admin (blog admin vs. network level admin). |
|
298 | 298 | * |
299 | 299 | * @return bool |
300 | 300 | */ |