Completed
Push — add/vr-shortcode ( 271979...022ee9 )
by
unknown
26:28 queued 20:24
created
modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -9,6 +9,11 @@  discard block
 block discarded – undo
9 9
 	public $link;
10 10
 	public $grayscale;
11 11
 	public $columns;
12
+
13
+	/**
14
+	 * @param boolean $grayscale
15
+	 * @param integer $columns
16
+	 */
12 17
 	public function __construct( $attachments, $link, $grayscale, $columns ) {
13 18
 
14 19
 		$this->attachments = $attachments;
@@ -33,6 +38,9 @@  discard block
 block discarded – undo
33 38
 		return $html;
34 39
 	}
35 40
 
41
+	/**
42
+	 * @param string $name
43
+	 */
36 44
 	private function template( $name, $context = null ) {
37 45
 		if ( ! in_array( $name, self::$templates ) ) {
38 46
 			return;
Please login to merge, or discard this patch.
modules/videopress/class.videopress-player.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -185,6 +185,7 @@
 block discarded – undo
185 185
 	 * @since 1.3
186 186
 	 * @uses current_user_can() to test if current user has edit_posts capability
187 187
 	 * @var WP_Error $error WordPress error
188
+	 * @param VideoPress_Video $error
188 189
 	 * @return string HTML string
189 190
 	 */
190 191
 	private function error_message( $error ) {
Please login to merge, or discard this patch.
modules/videopress/class.videopress-video.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@
 block discarded – undo
271 271
 	 *
272 272
 	 * @since 1.2
273 273
 	 * @param string $url absolute URL
274
-	 * @return bool|string host component of the URL, or false if none found
274
+	 * @return string|false host component of the URL, or false if none found
275 275
 	 */
276 276
 	public static function hostname( $url ) {
277 277
 		return parse_url( esc_url_raw( $url ), PHP_URL_HOST );
Please login to merge, or discard this patch.
modules/videopress/videopress.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -147,6 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * Performs a remote XML-RPC query using Jetpack's IXR Client. And also
148 148
 	 * appends some useful stuff about this setup to the query.
149 149
 	 *
150
+	 * @param string $method
150 151
 	 * @return the Jetpack_IXR_Client object after querying.
151 152
 	 */
152 153
 	function query( $method, $args = null ) {
@@ -349,6 +350,7 @@  discard block
 block discarded – undo
349 350
 	 *
350 351
 	 * Similar to current_user_can, but internal to VideoPress. Returns
351 352
 	 * true if the given VideoPress capability is allowed by the given user.
353
+	 * @param string $cap
352 354
 	 */
353 355
 	function can( $cap, $user_id = false ) {
354 356
 		if ( ! $user_id )
Please login to merge, or discard this patch.
modules/widgets/facebook-likebox.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -252,6 +252,9 @@
 block discarded – undo
252 252
 		return ( FALSE !== strpos( $url, 'facebook.com' ) ) ? TRUE : FALSE;
253 253
 	}
254 254
 
255
+	/**
256
+	 * @param integer $value
257
+	 */
255 258
 	function normalize_int_value( $value, $default = 0, $max = 0, $min = 0 ) {
256 259
 		$value = (int) $value;
257 260
 
Please login to merge, or discard this patch.
modules/widgets/goodreads.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
 		do_action( 'jetpack_stats_extra', 'widget', 'goodreads' );
90 90
 	}
91 91
 
92
+	/**
93
+	 * @param string $user_id
94
+	 */
92 95
 	function goodreads_user_id_exists( $user_id ) {
93 96
 		$url = "http://www.goodreads.com/user/show/$user_id/";
94 97
 		$response = wp_remote_head( $url, array( 'httpversion'=>'1.1', 'timeout'=>3, 'redirection'=> 2 ) );
Please login to merge, or discard this patch.
class.jetpack-autoupdate.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	/**
116 116
 	 * Iterates through expected items ( plugins or themes ) and compares them to actual results.
117 117
 	 *
118
-	 * @param $items 'plugin' or 'theme'
118
+	 * @param string $items 'plugin' or 'theme'
119 119
 	 */
120 120
 	function log_items( $items ) {
121 121
 		$num_items_updated = 0;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	 * @param $item Example: 'jetpack/jetpack.php' for type 'plugin' or 'twentyfifteen' for type 'theme'
195 195
 	 * @param string $type 'plugin' or 'theme'
196 196
 	 *
197
-	 * @return bool|string
197
+	 * @return false|string
198 198
 	 */
199 199
 	private function get_error_message( $item, $type = 'plugin' ) {
200 200
 		if ( ! isset( $this->autoupdate_results[ $type ] ) ) {
Please login to merge, or discard this patch.
class.jetpack-sync.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@  discard block
 block discarded – undo
64 64
 
65 65
 	/**
66 66
 	 * @param string $file __FILE__
67
-	 * @param string $option, Option name to sync
68 67
 	 * @param string $option ...
69 68
 	 */
70 69
 	static function sync_options( $file, $option /*, $option, ... */ ) {
@@ -75,8 +74,6 @@  discard block
 block discarded – undo
75 74
 	}
76 75
 	/**
77 76
 	 * @param string $file __FILE__
78
-	 * @param string $option, Option name to sync
79
-	 * @param string $option ...
80 77
 	 */
81 78
 	static function sync_constant( $file, $constant ) {
82 79
 		if ( is_network_admin() ) return;
@@ -352,6 +349,9 @@  discard block
 block discarded – undo
352 349
 		$this->transition_post_status_action( 'delete', $post->post_status, $post );
353 350
 	}
354 351
 
352
+	/**
353
+	 * @param string $new_status
354
+	 */
355 355
 	function transition_post_status_action( $new_status, $old_status, $post ) {
356 356
 		$sync = $this->get_post_sync_operation( $new_status, $old_status, $post, $this->sync_conditions['posts'] );
357 357
 		if ( !$sync ) {
@@ -736,6 +736,11 @@  discard block
 block discarded – undo
736 736
 /* Options Sync */
737 737
 
738 738
 	/* Ah... so much simpler than Posts and Comments :) */
739
+
740
+	/**
741
+	 * @param string $file
742
+	 * @param string $option
743
+	 */
739 744
 	function options( $file, $option /*, $option, ... */ ) {
740 745
 		$options = func_get_args();
741 746
 		$file = array_shift( $options );
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +38 added lines, -7 removed lines patch added patch discarded remove patch
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
 	 * database which could be set to anything as opposed to what this function returns.
882 882
 	 * @param  bool  $option
883 883
 	 *
884
-	 * @return boolean
884
+	 * @return string
885 885
 	 */
886 886
 	public function is_main_network_option( $option ) {
887 887
 		// return '1' or ''
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
893 893
 	 *
894 894
 	 * @param  string  $option
895
-	 * @return boolean
895
+	 * @return string
896 896
 	 */
897 897
 	public function is_multisite( $option ) {
898 898
 		return (string) (bool) is_multisite();
@@ -1452,7 +1452,7 @@  discard block
 block discarded – undo
1452 1452
 	 * Returns the requested option.  Looks in jetpack_options or jetpack_$name as appropriate.
1453 1453
  	 *
1454 1454
 	 * @param string $name    Option name
1455
-	 * @param mixed  $default (optional)
1455
+	 * @param boolean  $default (optional)
1456 1456
 	 */
1457 1457
 	public static function get_option( $name, $default = false ) {
1458 1458
 		return Jetpack_Options::get_option( $name, $default );
@@ -1462,6 +1462,7 @@  discard block
 block discarded – undo
1462 1462
 	* Stores two secrets and a timestamp so WordPress.com can make a request back and verify an action
1463 1463
 	* Does some extra verification so urls (such as those to public-api, register, etc) can't just be crafted
1464 1464
 	* $name must be a registered option name.
1465
+	* @param string $name
1465 1466
 	*/
1466 1467
 	public static function create_nonce( $name ) {
1467 1468
 		$secret = wp_generate_password( 32, false ) . ':' . wp_generate_password( 32, false ) . ':' . ( time() + 600 );
@@ -1519,6 +1520,7 @@  discard block
 block discarded – undo
1519 1520
 	 * @param int $user_id
1520 1521
 	 * @param string $token
1521 1522
 	 * return bool
1523
+	 * @param boolean $is_master_user
1522 1524
 	 */
1523 1525
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
1524 1526
 		// not designed for concurrent updates
@@ -1895,6 +1897,7 @@  discard block
 block discarded – undo
1895 1897
 
1896 1898
 	/**
1897 1899
 	 * Like core's get_file_data implementation, but caches the result.
1900
+	 * @param string $file
1898 1901
 	 */
1899 1902
 	public static function get_file_data( $file, $headers ) {
1900 1903
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -1918,6 +1921,9 @@  discard block
 block discarded – undo
1918 1921
 		return $data;
1919 1922
 	}
1920 1923
 
1924
+	/**
1925
+	 * @param string $untranslated_tag
1926
+	 */
1921 1927
 	public static function translate_module_tag( $untranslated_tag ) {
1922 1928
 		// Tags are aggregated by tools/build-module-headings-translations.php
1923 1929
 		// and output in modules/module-headings.php
@@ -2167,6 +2173,9 @@  discard block
 block discarded – undo
2167 2173
 		$this->sync->sync_all_module_options( $module );
2168 2174
 	}
2169 2175
 
2176
+	/**
2177
+	 * @return string
2178
+	 */
2170 2179
 	public static function deactivate_module( $module ) {
2171 2180
 		do_action( 'jetpack_pre_deactivate_module', $module );
2172 2181
 
@@ -2190,6 +2199,9 @@  discard block
 block discarded – undo
2190 2199
 		return Jetpack_Options::update_option( 'active_modules', array_unique( $new ) );
2191 2200
 	}
2192 2201
 
2202
+	/**
2203
+	 * @param string $module
2204
+	 */
2193 2205
 	public static function enable_module_configurable( $module ) {
2194 2206
 		$module = Jetpack::get_module_slug( $module );
2195 2207
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -2200,16 +2212,25 @@  discard block
 block discarded – undo
2200 2212
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
2201 2213
 	}
2202 2214
 
2215
+	/**
2216
+	 * @param string $module
2217
+	 */
2203 2218
 	public static function module_configuration_load( $module, $method ) {
2204 2219
 		$module = Jetpack::get_module_slug( $module );
2205 2220
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
2206 2221
 	}
2207 2222
 
2223
+	/**
2224
+	 * @param string $module
2225
+	 */
2208 2226
 	public static function module_configuration_head( $module, $method ) {
2209 2227
 		$module = Jetpack::get_module_slug( $module );
2210 2228
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
2211 2229
 	}
2212 2230
 
2231
+	/**
2232
+	 * @param string $module
2233
+	 */
2213 2234
 	public static function module_configuration_screen( $module, $method ) {
2214 2235
 		$module = Jetpack::get_module_slug( $module );
2215 2236
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
@@ -2217,6 +2238,9 @@  discard block
 block discarded – undo
2217 2238
 
2218 2239
 /* Installation */
2219 2240
 
2241
+	/**
2242
+	 * @param string $message
2243
+	 */
2220 2244
 	public static function bail_on_activation( $message, $deactivate = true ) {
2221 2245
 ?>
2222 2246
 <!doctype html>
@@ -2782,7 +2806,7 @@  discard block
 block discarded – undo
2782 2806
 	 * Add help to the Jetpack page
2783 2807
 	 *
2784 2808
 	 * @since Jetpack (1.2.3)
2785
-	 * @return false if not the Jetpack page
2809
+	 * @return false|null if not the Jetpack page
2786 2810
 	 */
2787 2811
 	function admin_help() {
2788 2812
 		$current_screen = get_current_screen();
@@ -4008,6 +4032,7 @@  discard block
 block discarded – undo
4008 4032
 	/**
4009 4033
 	 * Returns the requested Jetpack API URL
4010 4034
 	 *
4035
+	 * @param string $relative_url
4011 4036
 	 * @return string
4012 4037
 	 */
4013 4038
 	public static function api_url( $relative_url ) {
@@ -4422,6 +4447,10 @@  discard block
 block discarded – undo
4422 4447
 		return new WP_User( $token_details['user_id'] );
4423 4448
 	}
4424 4449
 
4450
+	/**
4451
+	 * @param integer $timestamp
4452
+	 * @param string $nonce
4453
+	 */
4425 4454
 	function add_nonce( $timestamp, $nonce ) {
4426 4455
 		global $wpdb;
4427 4456
 		static $nonces_used_this_request = array();
@@ -4627,6 +4656,9 @@  discard block
 block discarded – undo
4627 4656
 		Jetpack::state( null, null, true );
4628 4657
 	}
4629 4658
 
4659
+	/**
4660
+	 * @param string $file
4661
+	 */
4630 4662
 	public static function check_privacy( $file ) {
4631 4663
 		static $is_site_publicly_accessible = null;
4632 4664
 
@@ -5272,8 +5304,8 @@  discard block
 block discarded – undo
5272 5304
 	 *  - Absolute URLs             `http://domain.com/feh.png`
5273 5305
 	 *  - Domain root relative URLs `/feh.png`
5274 5306
 	 *
5275
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
5276
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5307
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
5308
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
5277 5309
 	 *
5278 5310
 	 * @return mixed|string
5279 5311
 	 */
@@ -5661,7 +5693,6 @@  discard block
 block discarded – undo
5661 5693
 	}
5662 5694
 
5663 5695
 	/**
5664
-	 * @param mixed $result Value for the user's option
5665 5696
 	 * @return mixed
5666 5697
 	 */
5667 5698
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.