@@ -391,8 +391,8 @@ |
||
391 | 391 | * |
392 | 392 | * @param $width int Width of the image |
393 | 393 | * @param $height int Height of the image |
394 | -* @param $req_width int Required width to pass validation |
|
395 | -* @param $req_height int Required height to pass validation |
|
394 | +* @param integer $req_width int Required width to pass validation |
|
395 | +* @param integer $req_height int Required height to pass validation |
|
396 | 396 | * @return bool - True if the image passed the required size validation |
397 | 397 | */ |
398 | 398 | function _jetpack_og_get_image_validate_size($width, $height, $req_width, $req_height) { |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ) ); |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $file |
|
118 | + */ |
|
116 | 119 | function wpcom_static_url( $file ) { |
117 | 120 | if ( ! empty( $this->sandbox_url ) ) { |
118 | 121 | // For testing undeployed changes to remotely enqueued scripts and styles. |
@@ -295,6 +298,9 @@ discard block |
||
295 | 298 | return $primary_anchor . $secondary_anchor; |
296 | 299 | } |
297 | 300 | |
301 | + /** |
|
302 | + * @param string $class |
|
303 | + */ |
|
298 | 304 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
299 | 305 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
300 | 306 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Plugin options getter |
144 | 144 | * |
145 | - * @param string|array $option Option name |
|
145 | + * @param string $option Option name |
|
146 | 146 | * @param mixed $default Default value |
147 | 147 | * |
148 | 148 | * @return mixed Option value |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @param string $url |
171 | 171 | * |
172 | - * @return boolean |
|
172 | + * @return integer |
|
173 | 173 | */ |
174 | 174 | function soundcloud_url_has_tracklist( $url ) { |
175 | 175 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |