Completed
Push — add/idc-migrate-endpoint ( 0716cd...8b08c8 )
by
unknown
658:50 queued 648:03
created
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -255,6 +255,11 @@  discard block
 block discarded – undo
255 255
 		) );
256 256
 	}
257 257
 
258
+	/**
259
+	 * @param string $path
260
+	 * @param string $classname
261
+	 * @param Jetpack_IXR_Client $constructor_arguments
262
+	 */
258 263
 	public static function route( $path, $classname, $method,
259 264
 		$constructor_arguments = NULL,
260 265
 		$endpoint_arguments = NULL
@@ -699,7 +704,7 @@  discard block
 block discarded – undo
699 704
 	/**
700 705
 	 * Sets a jetpack option flag, and responds with an appropriate WP API response.
701 706
 	 *
702
-	 * @param $option_name The name of the jetpack option to set to true
707
+	 * @param string $option_name The name of the jetpack option to set to true
703 708
 	 *
704 709
 	 * @since 4.4.0
705 710
 	 *
@@ -943,7 +948,6 @@  discard block
 block discarded – undo
943 948
 	 * @since 4.3.0
944 949
 	 *
945 950
 	 * @param string $module Module slug. If empty, it's assumed we're updating a module and we'll try to get its slug.
946
-	 * @param bool $cache Whether to cache the options or return always fresh.
947 951
 	 *
948 952
 	 * @return array
949 953
 	 */
@@ -1837,7 +1841,7 @@  discard block
 block discarded – undo
1837 1841
 	 *
1838 1842
 	 * @param string $route Regular expression for the endpoint with the module slug to return.
1839 1843
 	 *
1840
-	 * @return array
1844
+	 * @return string
1841 1845
 	 */
1842 1846
 	public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) {
1843 1847
 
@@ -1862,7 +1866,7 @@  discard block
 block discarded – undo
1862 1866
 	 * @param string      $modules Can be a single module or a list of modules.
1863 1867
 	 * @param null|string $slug    Slug of the module in the first parameter.
1864 1868
 	 *
1865
-	 * @return array
1869
+	 * @return string
1866 1870
 	 */
1867 1871
 	public static function prepare_modules_for_response( $modules = '', $slug = null ) {
1868 1872
 		if ( get_option( 'permalink_structure' ) ) {
Please login to merge, or discard this patch.