@@ -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 | */ |
@@ -336,7 +336,7 @@ |
||
| 336 | 336 | * @author Vova Feldman (@svovaf) |
| 337 | 337 | * @since 1.0.9 |
| 338 | 338 | * |
| 339 | - * @param $id |
|
| 339 | + * @param string $id |
|
| 340 | 340 | * |
| 341 | 341 | * @return bool |
| 342 | 342 | */ |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | * Register myself so that all associated JS and CSS files can be found and automatically included |
| 256 | 256 | * @param $extensions |
| 257 | 257 | * |
| 258 | - * @return array |
|
| 258 | + * @return string[] |
|
| 259 | 259 | */ |
| 260 | 260 | function register_myself( $extensions ) { |
| 261 | 261 | $extensions[] = __FILE__; |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | * Build up the arguments needed for rendering this gallery template |
| 414 | 414 | * |
| 415 | 415 | * @param $args |
| 416 | - * @return array |
|
| 416 | + * @return boolean |
|
| 417 | 417 | */ |
| 418 | 418 | function build_gallery_template_arguments( $args ) { |
| 419 | 419 | $args = foogallery_gallery_template_setting( 'thumbnail_dimensions', array() ); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | - * @param $query |
|
| 74 | + * @param string $query |
|
| 75 | 75 | * @param int $page |
| 76 | 76 | * @param int $offset |
| 77 | 77 | * @return array |
@@ -92,6 +92,9 @@ discard block |
||
| 92 | 92 | return $this->error_response("Unrecognized Vimeo url."); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $id |
|
| 97 | + */ |
|
| 95 | 98 | public function fetch_video($id) { |
| 96 | 99 | if (!is_numeric($id)) { |
| 97 | 100 | return $this->error_response("Invalid video id supplied."); |
@@ -129,6 +132,10 @@ discard block |
||
| 129 | 132 | return $response; |
| 130 | 133 | } |
| 131 | 134 | |
| 135 | + /** |
|
| 136 | + * @param string $type |
|
| 137 | + * @param string $id |
|
| 138 | + */ |
|
| 132 | 139 | public function fetch_stream($type, $id, $page = 1, $offset = 0) { |
| 133 | 140 | $supports = array("album", "channel", "user"); |
| 134 | 141 | |