Completed
Push — add/private-sites ( bb35c2...e857b8 )
by
unknown
08:32
created
class.jetpack-post-images.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,6 +162,7 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * Get attachment images for a specified post and return them. Also make sure
164 164
 	 * their dimensions are at or above a required minimum.
165
+	 * @param integer $post_id
165 166
 	 */
166 167
 	static function from_attachment( $post_id, $width = 200, $height = 200 ) {
167 168
 		$images = array();
@@ -224,7 +225,7 @@  discard block
 block discarded – undo
224 225
 	 * Check if a Featured Image is set for this post, and return it in a similar
225 226
 	 * format to the other images?_from_*() methods.
226 227
 	 * @param  int $post_id The post ID to check
227
-	 * @return Array containing details of the Featured Image, or empty array if none.
228
+	 * @return integer|null containing details of the Featured Image, or empty array if none.
228 229
 	 */
229 230
 	static function from_thumbnail( $post_id, $width = 200, $height = 200 ) {
230 231
 		$images = array();
@@ -668,7 +669,6 @@  discard block
 block discarded – undo
668 669
 	 * resized and cropped image.
669 670
 	 *
670 671
 	 * @param  string $src
671
-	 * @param  int    $dimension
672 672
 	 * @return string            Transformed image URL
673 673
 	 */
674 674
 	static function fit_image_url( $src, $width, $height ) {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 	 *
716 716
 	 * @param mixed $html_or_id The HTML string to parse for images, or a post id.
717 717
 	 *
718
-	 * @return array $html_info {
718
+	 * @return integer $html_info {
719 719
 	 * @type string $html     Post content.
720 720
 	 * @type string $post_url Post URL.
721 721
 	 * }
Please login to merge, or discard this patch.
modules/publicize/publicize-jetpack.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -682,6 +682,9 @@
 block discarded – undo
682 682
 		$this->options_save_other( 'linkedin' );
683 683
 	}
684 684
 
685
+	/**
686
+	 * @param string $service_name
687
+	 */
685 688
 	function options_save_other( $service_name ) {
686 689
 		// Nonce check
687 690
 		check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] );
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +44 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1223,7 +1223,7 @@  discard block
 block discarded – undo
1223 1223
 	}
1224 1224
 	/**
1225 1225
 	 * Does the network allow admins to add new users.
1226
-	 * @return boolian
1226
+	 * @return boolean
1227 1227
 	 */
1228 1228
 	static function network_add_new_users( $option = null ) {
1229 1229
 		return (bool) get_site_option( 'add_new_users' );
@@ -1328,7 +1328,7 @@  discard block
 block discarded – undo
1328 1328
 	 * database which could be set to anything as opposed to what this function returns.
1329 1329
 	 * @param  bool  $option
1330 1330
 	 *
1331
-	 * @return boolean
1331
+	 * @return string
1332 1332
 	 */
1333 1333
 	public function is_main_network_option( $option ) {
1334 1334
 		// return '1' or ''
@@ -1339,7 +1339,7 @@  discard block
 block discarded – undo
1339 1339
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1340 1340
 	 *
1341 1341
 	 * @param  string  $option
1342
-	 * @return boolean
1342
+	 * @return string
1343 1343
 	 */
1344 1344
 	public function is_multisite( $option ) {
1345 1345
 		return (string) (bool) is_multisite();
@@ -1401,7 +1401,7 @@  discard block
 block discarded – undo
1401 1401
 
1402 1402
 	/**
1403 1403
 	 * Returns true if the site has file write access false otherwise.
1404
-	 * @return string ( '1' | '0' )
1404
+	 * @return integer ( '1' | '0' )
1405 1405
 	 **/
1406 1406
 	public static function file_system_write_access() {
1407 1407
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2266,6 +2266,7 @@  discard block
 block discarded – undo
2266 2266
 	 * @param int $user_id
2267 2267
 	 * @param string $token
2268 2268
 	 * return bool
2269
+	 * @param boolean $is_master_user
2269 2270
 	 */
2270 2271
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2271 2272
 		// not designed for concurrent updates
@@ -2668,6 +2669,7 @@  discard block
 block discarded – undo
2668 2669
 
2669 2670
 	/**
2670 2671
 	 * Like core's get_file_data implementation, but caches the result.
2672
+	 * @param string $file
2671 2673
 	 */
2672 2674
 	public static function get_file_data( $file, $headers ) {
2673 2675
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2881,8 +2883,8 @@  discard block
 block discarded – undo
2881 2883
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2882 2884
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2883 2885
 	 *
2884
-	 * @param $string
2885
-	 * @return mixed
2886
+	 * @param string $string
2887
+	 * @return string|null
2886 2888
 	 */
2887 2889
 	public static function alias_directories( $string ) {
2888 2890
 		// ABSPATH has a trailing slash.
@@ -3162,6 +3164,9 @@  discard block
 block discarded – undo
3162 3164
 		return self::update_active_modules( $new );
3163 3165
 	}
3164 3166
 
3167
+	/**
3168
+	 * @param string $module
3169
+	 */
3165 3170
 	public static function enable_module_configurable( $module ) {
3166 3171
 		$module = Jetpack::get_module_slug( $module );
3167 3172
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3189,21 +3194,33 @@  discard block
 block discarded – undo
3189 3194
 		return $url;
3190 3195
 	}
3191 3196
 
3197
+	/**
3198
+	 * @param string $module
3199
+	 */
3192 3200
 	public static function module_configuration_load( $module, $method ) {
3193 3201
 		$module = Jetpack::get_module_slug( $module );
3194 3202
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
3195 3203
 	}
3196 3204
 
3205
+	/**
3206
+	 * @param string $module
3207
+	 */
3197 3208
 	public static function module_configuration_head( $module, $method ) {
3198 3209
 		$module = Jetpack::get_module_slug( $module );
3199 3210
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
3200 3211
 	}
3201 3212
 
3213
+	/**
3214
+	 * @param string $module
3215
+	 */
3202 3216
 	public static function module_configuration_screen( $module, $method ) {
3203 3217
 		$module = Jetpack::get_module_slug( $module );
3204 3218
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
3205 3219
 	}
3206 3220
 
3221
+	/**
3222
+	 * @param string $module
3223
+	 */
3207 3224
 	public static function module_configuration_activation_screen( $module, $method ) {
3208 3225
 		$module = Jetpack::get_module_slug( $module );
3209 3226
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -3211,6 +3228,9 @@  discard block
 block discarded – undo
3211 3228
 
3212 3229
 /* Installation */
3213 3230
 
3231
+	/**
3232
+	 * @param string $message
3233
+	 */
3214 3234
 	public static function bail_on_activation( $message, $deactivate = true ) {
3215 3235
 ?>
3216 3236
 <!doctype html>
@@ -3971,7 +3991,7 @@  discard block
 block discarded – undo
3971 3991
 	 * Add help to the Jetpack page
3972 3992
 	 *
3973 3993
 	 * @since Jetpack (1.2.3)
3974
-	 * @return false if not the Jetpack page
3994
+	 * @return false|null if not the Jetpack page
3975 3995
 	 */
3976 3996
 	function admin_help() {
3977 3997
 		$current_screen = get_current_screen();
@@ -4867,6 +4887,9 @@  discard block
 block discarded – undo
4867 4887
 		return $url;
4868 4888
 	}
4869 4889
 
4890
+	/**
4891
+	 * @return string
4892
+	 */
4870 4893
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
4871 4894
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
4872 4895
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -5078,6 +5101,7 @@  discard block
 block discarded – undo
5078 5101
 	/**
5079 5102
 	 * Returns the requested Jetpack API URL
5080 5103
 	 *
5104
+	 * @param string $relative_url
5081 5105
 	 * @return string
5082 5106
 	 */
5083 5107
 	public static function api_url( $relative_url ) {
@@ -5269,6 +5293,7 @@  discard block
 block discarded – undo
5269 5293
 	 * Note these tokens are unique per call, NOT static per site for connecting.
5270 5294
 	 *
5271 5295
 	 * @since 2.6
5296
+	 * @param string $action
5272 5297
 	 * @return array
5273 5298
 	 */
5274 5299
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
@@ -5802,7 +5827,6 @@  discard block
 block discarded – undo
5802 5827
 	/**
5803 5828
 	 * Report authentication status to the WP REST API.
5804 5829
 	 *
5805
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5806 5830
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5807 5831
 	 */
5808 5832
 	public function wp_rest_authentication_errors( $value ) {
@@ -5812,6 +5836,10 @@  discard block
 block discarded – undo
5812 5836
 		return $this->rest_authentication_status;
5813 5837
 	}
5814 5838
 
5839
+	/**
5840
+	 * @param integer $timestamp
5841
+	 * @param string $nonce
5842
+	 */
5815 5843
 	function add_nonce( $timestamp, $nonce ) {
5816 5844
 		global $wpdb;
5817 5845
 		static $nonces_used_this_request = array();
@@ -5957,6 +5985,7 @@  discard block
 block discarded – undo
5957 5985
 	 * @param string $key
5958 5986
 	 * @param string $value
5959 5987
 	 * @param bool $restate private
5988
+	 * @return string
5960 5989
 	 */
5961 5990
 	public static function state( $key = null, $value = null, $restate = false ) {
5962 5991
 		static $state = array();
@@ -6013,6 +6042,9 @@  discard block
 block discarded – undo
6013 6042
 		Jetpack::state( null, null, true );
6014 6043
 	}
6015 6044
 
6045
+	/**
6046
+	 * @param string $file
6047
+	 */
6016 6048
 	public static function check_privacy( $file ) {
6017 6049
 		static $is_site_publicly_accessible = null;
6018 6050
 
@@ -6630,9 +6662,7 @@  discard block
 block discarded – undo
6630 6662
 	 *
6631 6663
 	 * Attached to `style_loader_src` filter.
6632 6664
 	 *
6633
-	 * @param string $tag The tag that would link to the external asset.
6634 6665
 	 * @param string $handle The registered handle of the script in question.
6635
-	 * @param string $href The url of the asset in question.
6636 6666
 	 */
6637 6667
 	public static function set_suffix_on_min( $src, $handle ) {
6638 6668
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6813,8 +6843,8 @@  discard block
 block discarded – undo
6813 6843
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6814 6844
 	 *  - Domain root relative URLs `/feh.png`
6815 6845
 	 *
6816
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6817
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6846
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6847
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6818 6848
 	 *
6819 6849
 	 * @return mixed|string
6820 6850
 	 */
@@ -7048,7 +7078,7 @@  discard block
 block discarded – undo
7048 7078
 	 *
7049 7079
 	 * @param string $option_name
7050 7080
 	 *
7051
-	 * @return bool
7081
+	 * @return false|null
7052 7082
 	 */
7053 7083
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
7054 7084
 		// Bail if Jump Start has already been dismissed
@@ -7089,7 +7119,7 @@  discard block
 block discarded – undo
7089 7119
 	/**
7090 7120
 	 * Stores and prints out domains to prefetch for page speed optimization.
7091 7121
 	 *
7092
-	 * @param mixed $new_urls
7122
+	 * @param string[] $new_urls
7093 7123
 	 */
7094 7124
 	public static function dns_prefetch( $new_urls = null ) {
7095 7125
 		static $prefetch_urls = array();
@@ -7143,7 +7173,6 @@  discard block
 block discarded – undo
7143 7173
 	}
7144 7174
 
7145 7175
 	/**
7146
-	 * @param mixed $result Value for the user's option
7147 7176
 	 * @return mixed
7148 7177
 	 */
7149 7178
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.
modules/module-headings.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -368,5 +368,4 @@
 block discarded – undo
368 368
 			'Site Stats' =>_x( 'Site Stats', 'Module Tag', 'jetpack' ),
369 369
 		);
370 370
 	}
371
-	return $module_tags[ $key ];
372
-}
371
+	return $module_tags[ $key
373 372
\ No newline at end of file
Please login to merge, or discard this patch.