Completed
Push — add/idc-migrate-endpoint ( b2b359...6a336a )
by
unknown
321:48 queued 305:39
created
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -266,6 +266,11 @@  discard block
 block discarded – undo
266 266
 		) );
267 267
 	}
268 268
 
269
+	/**
270
+	 * @param string $path
271
+	 * @param string $classname
272
+	 * @param Jetpack_IXR_Client $constructor_arguments
273
+	 */
269 274
 	public static function route( $path, $classname, $method,
270 275
 		$constructor_arguments = NULL,
271 276
 		$endpoint_arguments = NULL
@@ -722,7 +727,7 @@  discard block
 block discarded – undo
722 727
 	/**
723 728
 	 * Sets a jetpack option flag, and responds with an appropriate WP API response.
724 729
 	 *
725
-	 * @param $option_name The name of the jetpack option to set to true
730
+	 * @param string $option_name The name of the jetpack option to set to true
726 731
 	 *
727 732
 	 * @since 4.4.0
728 733
 	 *
@@ -1883,7 +1888,7 @@  discard block
 block discarded – undo
1883 1888
 	 *
1884 1889
 	 * @param string $route Regular expression for the endpoint with the module slug to return.
1885 1890
 	 *
1886
-	 * @return array
1891
+	 * @return string
1887 1892
 	 */
1888 1893
 	public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) {
1889 1894
 
@@ -1908,7 +1913,7 @@  discard block
 block discarded – undo
1908 1913
 	 * @param string      $modules Can be a single module or a list of modules.
1909 1914
 	 * @param null|string $slug    Slug of the module in the first parameter.
1910 1915
 	 *
1911
-	 * @return array
1916
+	 * @return string
1912 1917
 	 */
1913 1918
 	public static function prepare_modules_for_response( $modules = '', $slug = null ) {
1914 1919
 		if ( get_option( 'permalink_structure' ) ) {
Please login to merge, or discard this patch.