@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * A work-around / hack to make it possible to go to the media library with the add new box open. |
247 | 247 | * |
248 | - * @return bool |
|
248 | + * @return false|null |
|
249 | 249 | */ |
250 | 250 | public function print_in_footer_open_media_add_new() { |
251 | 251 | global $pagenow; |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | /** |
340 | 340 | * @param array $extensions |
341 | 341 | * |
342 | - * @return array |
|
342 | + * @return string[] |
|
343 | 343 | */ |
344 | 344 | public function add_videopress_extenstion( $extensions ) { |
345 | 345 | $extensions[] = 'videopress'; |
@@ -185,6 +185,7 @@ |
||
185 | 185 | * @since 1.3 |
186 | 186 | * @uses current_user_can() to test if current user has edit_posts capability |
187 | 187 | * @var WP_Error $error WordPress error |
188 | + * @param VideoPress_Video $error |
|
188 | 189 | * @return string HTML string |
189 | 190 | */ |
190 | 191 | private function error_message( $error ) { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @param string $cron_name |
87 | 87 | * |
88 | - * @return bool |
|
88 | + * @return false|null |
|
89 | 89 | */ |
90 | 90 | public function activate_cron( $cron_name ) { |
91 | 91 |
@@ -174,6 +174,7 @@ discard block |
||
174 | 174 | * @since 1.3 |
175 | 175 | * @var string $guid VideoPress unique identifier |
176 | 176 | * @var int $maxwidth maximum requested video width. final width and height are calculated on VideoPress servers based on the aspect ratio of the original video upload. |
177 | + * @param string $guid |
|
177 | 178 | */ |
178 | 179 | public function __construct( $guid, $maxwidth = 640 ) { |
179 | 180 | $this->guid = $guid; |
@@ -311,7 +312,7 @@ discard block |
||
311 | 312 | * |
312 | 313 | * @since 1.2 |
313 | 314 | * @param string $url absolute URL |
314 | - * @return bool|string host component of the URL, or false if none found |
|
315 | + * @return string|false host component of the URL, or false if none found |
|
315 | 316 | */ |
316 | 317 | public static function hostname( $url ) { |
317 | 318 | return wp_parse_url( esc_url_raw( $url ), PHP_URL_HOST ); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * These values are used in new widgets. |
48 | 48 | * |
49 | - * @return array Array of default values for the Widget's options |
|
49 | + * @return string Array of default values for the Widget's options |
|
50 | 50 | */ |
51 | 51 | public function defaults() { |
52 | 52 | return array( |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * |
117 | 117 | * These values are used in new widgets. |
118 | 118 | * |
119 | - * @return array Default values for the widget options. |
|
119 | + * @return string Default values for the widget options. |
|
120 | 120 | */ |
121 | 121 | public function defaults() { |
122 | 122 | return array( |
@@ -231,6 +231,9 @@ discard block |
||
231 | 231 | <?php |
232 | 232 | } |
233 | 233 | |
234 | + /** |
|
235 | + * @return string |
|
236 | + */ |
|
234 | 237 | function get_default_args() { |
235 | 238 | $defaults = array( |
236 | 239 | 'href' => '', |
@@ -292,6 +295,9 @@ discard block |
||
292 | 295 | return ( false !== strpos( $url, 'facebook.com' ) ) ? true : false; |
293 | 296 | } |
294 | 297 | |
298 | + /** |
|
299 | + * @param integer $value |
|
300 | + */ |
|
295 | 301 | function normalize_int_value( $value, $default = 0, $max = 0, $min = 0 ) { |
296 | 302 | $value = (int) $value; |
297 | 303 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * |
117 | 117 | * These values are used in new widgets. |
118 | 118 | * |
119 | - * @return array Default values for the widget options. |
|
119 | + * @return string Default values for the widget options. |
|
120 | 120 | */ |
121 | 121 | public function defaults() { |
122 | 122 | return array( |
@@ -387,7 +387,7 @@ |
||
387 | 387 | * These values are used in new widgets as well as when sanitizing input. If a given value is not allowed, |
388 | 388 | * as defined in allowed_values(), that input is set to the default value defined here. |
389 | 389 | * |
390 | - * @return array Array of default values for the Widget's options |
|
390 | + * @return string Array of default values for the Widget's options |
|
391 | 391 | */ |
392 | 392 | public function defaults() { |
393 | 393 | return array( |