@@ -283,6 +283,11 @@ discard block |
||
283 | 283 | ) ); |
284 | 284 | } |
285 | 285 | |
286 | + /** |
|
287 | + * @param string $path |
|
288 | + * @param string $classname |
|
289 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
290 | + */ |
|
286 | 291 | public static function route( $path, $classname, $method, |
287 | 292 | $constructor_arguments = NULL, |
288 | 293 | $endpoint_arguments = NULL |
@@ -1980,7 +1985,7 @@ discard block |
||
1980 | 1985 | * |
1981 | 1986 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1982 | 1987 | * |
1983 | - * @return array |
|
1988 | + * @return string |
|
1984 | 1989 | */ |
1985 | 1990 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1986 | 1991 | |
@@ -2005,7 +2010,7 @@ discard block |
||
2005 | 2010 | * @param string $modules Can be a single module or a list of modules. |
2006 | 2011 | * @param null|string $slug Slug of the module in the first parameter. |
2007 | 2012 | * |
2008 | - * @return array |
|
2013 | + * @return string |
|
2009 | 2014 | */ |
2010 | 2015 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
2011 | 2016 | if ( get_option( 'permalink_structure' ) ) { |
@@ -1387,7 +1387,6 @@ discard block |
||
1387 | 1387 | * |
1388 | 1388 | * @see ::style() |
1389 | 1389 | * @internal |
1390 | - * @param bool $style |
|
1391 | 1390 | */ |
1392 | 1391 | static function _style_on() { |
1393 | 1392 | return self::style( true ); |
@@ -1526,6 +1525,7 @@ discard block |
||
1526 | 1525 | * |
1527 | 1526 | * @param int $feedback_id |
1528 | 1527 | * @param object Grunion_Contact_Form $form |
1528 | + * @param Grunion_Contact_Form $form |
|
1529 | 1529 | * |
1530 | 1530 | * @return string $message |
1531 | 1531 | */ |
@@ -1630,7 +1630,7 @@ discard block |
||
1630 | 1630 | * |
1631 | 1631 | * @param array $attributes Key => Value pairs as parsed by shortcode_parse_atts() |
1632 | 1632 | * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field] |
1633 | - * @return HTML for the contact form field |
|
1633 | + * @return string for the contact form field |
|
1634 | 1634 | */ |
1635 | 1635 | static function parse_contact_field( $attributes, $content ) { |
1636 | 1636 | // Don't try to parse contact form fields if not inside a contact form |
@@ -353,6 +353,9 @@ discard block |
||
353 | 353 | ), menu_page_url( 'sharing', false ) ); |
354 | 354 | } |
355 | 355 | |
356 | + /** |
|
357 | + * @param string $filter |
|
358 | + */ |
|
356 | 359 | function get_services( $filter ) { |
357 | 360 | if ( ! in_array( $filter, array( 'all', 'connected' ) ) ) { |
358 | 361 | $filter = 'all'; |
@@ -787,6 +790,9 @@ discard block |
||
787 | 790 | $this->options_save_other( 'google_plus' ); |
788 | 791 | } |
789 | 792 | |
793 | + /** |
|
794 | + * @param string $service_name |
|
795 | + */ |
|
790 | 796 | function options_save_other( $service_name ) { |
791 | 797 | // Nonce check |
792 | 798 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |
@@ -179,7 +179,7 @@ |
||
179 | 179 | * @param array $hosts |
180 | 180 | * @param string $api_base |
181 | 181 | * |
182 | - * @return array |
|
182 | + * @return string[] |
|
183 | 183 | */ |
184 | 184 | static function allowed_redirect_hosts( $hosts, $api_base = JETPACK__API_BASE ) { |
185 | 185 | if ( empty( $hosts ) ) { |
@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * Back end function to abstract the xmlrpc function calls to wpcom. |
177 | 177 | * |
178 | - * @param $endpoint |
|
178 | + * @param string $endpoint |
|
179 | 179 | * @param $error_message |
180 | 180 | */ |
181 | 181 | function __process_ajax_proxy_request( $endpoint, $error_message ) { |
@@ -7,6 +7,7 @@ discard block |
||
7 | 7 | * |
8 | 8 | * @param string $image_url URL to the publicly accessible image you want to manipulate |
9 | 9 | * @param array|string $args An array of arguments, i.e. array( 'w' => '300', 'resize' => array( 123, 456 ) ), or in string form (w=123&h=456) |
10 | + * @param string $scheme |
|
10 | 11 | * @return string The raw final URL. You should run this through esc_url() before displaying it. |
11 | 12 | */ |
12 | 13 | function jetpack_photon_url( $image_url, $args = array(), $scheme = null ) { |
@@ -268,7 +269,7 @@ discard block |
||
268 | 269 | * |
269 | 270 | * @param string $url The URL to parse |
270 | 271 | * @param integer $component Retrieve specific URL component |
271 | - * @return mixed Result of parse_url |
|
272 | + * @return string|false Result of parse_url |
|
272 | 273 | */ |
273 | 274 | function jetpack_photon_parse_url( $url, $component = -1 ) { |
274 | 275 | if ( 0 === strpos( $url, '//' ) ) { |
@@ -80,6 +80,8 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Maybe output or return, depending on the context |
83 | + * @param string $val |
|
84 | + * @param boolean $maybe |
|
83 | 85 | */ |
84 | 86 | private function _output_or_return( $val, $maybe ) { |
85 | 87 | if ( $maybe ) { |