Completed
Push — add/affiliate-code-jitm-urls ( 74c64c...c3fd62 )
by
unknown
07:12 queued 31s
created
class.photon.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1095,7 +1095,7 @@
 block discarded – undo
1095 1095
 	 * after ourselves without breaking anyone else's filters.
1096 1096
 	 *
1097 1097
 	 * @internal
1098
-	 * @return true
1098
+	 * @return boolean
1099 1099
 	 */
1100 1100
 	public function _override_image_downsize_in_rest_edit_context() {
1101 1101
 		return true;
Please login to merge, or discard this patch.
modules/contact-form/grunion-contact-form.php 1 patch
Doc Comments   +44 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,6 +283,9 @@  discard block
 block discarded – undo
283 283
 		return Grunion_Contact_Form::parse( $atts, do_blocks( $content ) );
284 284
 	}
285 285
 
286
+	/**
287
+	 * @param string $type
288
+	 */
286 289
 	public static function block_attributes_to_shortcode_attributes( $atts, $type ) {
287 290
 		$atts['type'] = $type;
288 291
 		if ( isset( $atts['className'] ) ) {
@@ -1878,7 +1881,6 @@  discard block
 block discarded – undo
1878 1881
 	 *
1879 1882
 	 * @see ::style()
1880 1883
 	 * @internal
1881
-	 * @param bool $style
1882 1884
 	 */
1883 1885
 	static function _style_on() {
1884 1886
 		return self::style( true );
@@ -2023,6 +2025,7 @@  discard block
 block discarded – undo
2023 2025
 	 *
2024 2026
 	 * @param int                         $feedback_id
2025 2027
 	 * @param object Grunion_Contact_Form $form
2028
+	 * @param Grunion_Contact_Form $form
2026 2029
 	 *
2027 2030
 	 * @return string $message
2028 2031
 	 */
@@ -2135,7 +2138,7 @@  discard block
 block discarded – undo
2135 2138
 	 *
2136 2139
 	 * @param array       $attributes Key => Value pairs as parsed by shortcode_parse_atts()
2137 2140
 	 * @param string|null $content The shortcode's inner content: [contact-field]$content[/contact-field]
2138
-	 * @return HTML for the contact form field
2141
+	 * @return string for the contact form field
2139 2142
 	 */
2140 2143
 	static function parse_contact_field( $attributes, $content ) {
2141 2144
 		// Don't try to parse contact form fields if not inside a contact form
@@ -3158,6 +3161,9 @@  discard block
 block discarded – undo
3158 3161
 
3159 3162
 	}
3160 3163
 
3164
+	/**
3165
+	 * @param string $type
3166
+	 */
3161 3167
 	function render_input_field( $type, $id, $value, $class, $placeholder, $required ) {
3162 3168
 		return "<input 
3163 3169
 					type='". esc_attr( $type ) ."' 
@@ -3169,24 +3175,40 @@  discard block
 block discarded – undo
3169 3175
 				/>\n";
3170 3176
 	}
3171 3177
 
3178
+	/**
3179
+	 * @param string $class
3180
+	 * @param string $placeholder
3181
+	 */
3172 3182
 	function render_email_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3173 3183
 		$field = $this->render_label( 'email', $id, $label, $required, $required_field_text );
3174 3184
 		$field .= $this->render_input_field( 'email', $id, $value, $class, $placeholder, $required );
3175 3185
 		return $field;
3176 3186
 	}
3177 3187
 
3188
+	/**
3189
+	 * @param string $class
3190
+	 * @param string $placeholder
3191
+	 */
3178 3192
 	function render_telephone_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3179 3193
 		$field = $this->render_label( 'telephone', $id, $label, $required, $required_field_text );
3180 3194
 		$field .= $this->render_input_field( 'tel', $id, $value, $class, $placeholder, $required );
3181 3195
 		return $field;
3182 3196
 	}
3183 3197
 
3198
+	/**
3199
+	 * @param string $class
3200
+	 * @param string $placeholder
3201
+	 */
3184 3202
 	function render_url_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3185 3203
 		$field = $this->render_label( 'url', $id, $label, $required, $required_field_text );
3186 3204
 		$field .= $this->render_input_field( 'url', $id, $value, $class, $placeholder, $required );
3187 3205
 		return $field;
3188 3206
 	}
3189 3207
 
3208
+	/**
3209
+	 * @param string $class
3210
+	 * @param string $placeholder
3211
+	 */
3190 3212
 	function render_textarea_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3191 3213
 		$field = $this->render_label( 'textarea', 'contact-form-comment-' . $id, $label, $required, $required_field_text );
3192 3214
 		$field .= "<textarea
@@ -3201,6 +3223,9 @@  discard block
 block discarded – undo
3201 3223
 		return $field;
3202 3224
 	}
3203 3225
 
3226
+	/**
3227
+	 * @param string $class
3228
+	 */
3204 3229
 	function render_radio_field( $id, $label, $value, $class, $required, $required_field_text ) {
3205 3230
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3206 3231
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3222,6 +3247,9 @@  discard block
 block discarded – undo
3222 3247
 		return $field;
3223 3248
 	}
3224 3249
 
3250
+	/**
3251
+	 * @param string $class
3252
+	 */
3225 3253
 	function render_checkbox_field( $id, $label, $value, $class, $required, $required_field_text ) {
3226 3254
 		$field = "<label class='grunion-field-label checkbox" . ( $this->is_error() ? ' form-error' : '' ) . "'>";
3227 3255
 			$field .= "\t\t<input type='checkbox' name='" . esc_attr( $id ) . "' value='" . esc_attr__( 'Yes', 'jetpack' ) . "' " . $class . checked( (bool) $value, true, false ) . ' ' . ( $required ? "required aria-required='true'" : '' ) . "/> \n";
@@ -3231,6 +3259,9 @@  discard block
 block discarded – undo
3231 3259
 		return $field;
3232 3260
 	}
3233 3261
 
3262
+	/**
3263
+	 * @param string $class
3264
+	 */
3234 3265
 	function render_checkbox_multiple_field( $id, $label, $value, $class, $required, $required_field_text  ) {
3235 3266
 		$field = $this->render_label( '', $id, $label, $required, $required_field_text );
3236 3267
 		foreach ( (array) $this->get_attribute( 'options' ) as $optionIndex => $option ) {
@@ -3246,6 +3277,9 @@  discard block
 block discarded – undo
3246 3277
 		return $field;
3247 3278
 	}
3248 3279
 
3280
+	/**
3281
+	 * @param string $class
3282
+	 */
3249 3283
 	function render_select_field( $id, $label, $value, $class, $required, $required_field_text ) {
3250 3284
 		$field = $this->render_label( 'select', $id, $label, $required, $required_field_text );
3251 3285
 		$field  .= "\t<select name='" . esc_attr( $id ) . "' id='" . esc_attr( $id ) . "' " . $class . ( $required ? "required aria-required='true'" : '' ) . ">\n";
@@ -3263,6 +3297,10 @@  discard block
 block discarded – undo
3263 3297
 		return $field;
3264 3298
 	}
3265 3299
 
3300
+	/**
3301
+	 * @param string $class
3302
+	 * @param string $placeholder
3303
+	 */
3266 3304
 	function render_date_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder ) {
3267 3305
 		$field = $this->render_label( 'date', $id, $label, $required, $required_field_text );
3268 3306
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
@@ -3282,6 +3320,10 @@  discard block
 block discarded – undo
3282 3320
 		return $field;
3283 3321
 	}
3284 3322
 
3323
+	/**
3324
+	 * @param string $class
3325
+	 * @param string $placeholder
3326
+	 */
3285 3327
 	function render_default_field( $id, $label, $value, $class, $required, $required_field_text, $placeholder, $type ) {
3286 3328
 		$field = $this->render_label( $type, $id, $label, $required, $required_field_text );
3287 3329
 		$field .= $this->render_input_field( 'text', $id, $value, $class, $placeholder, $required );
Please login to merge, or discard this patch.
class.jetpack-gutenberg.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  *
12 12
  * @param string $type Slug of the block. Will be prefixed with jetpack/.
13 13
  * @param array  $args Arguments that are passed into the register_block_type.
14
- * @param array  $avalibility Arguments that tells us what kind of avalibility the block has
14
+ * @param array  $availability Arguments that tells us what kind of avalibility the block has
15 15
  *
16 16
  * @see register_block_type
17 17
  *
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	/**
99 99
 	 * Checks for a given .json file in the blocks folder.
100 100
 	 *
101
-	 * @param $preset The name of the .json file to look for.
101
+	 * @param string $preset The name of the .json file to look for.
102 102
 	 *
103 103
 	 * @return bool True if the file is found.
104 104
 	 */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	/**
110 110
 	 * Decodes JSON loaded from a preset file in the blocks folder
111 111
 	 *
112
-	 * @param $preset The name of the .json file to load.
112
+	 * @param string $preset The name of the .json file to load.
113 113
 	 *
114 114
 	 * @return mixed Returns an object if the file is present, or false if a valid .json file is not present.
115 115
 	 */
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	 * Only enqueue block assets when needed.
218 218
 	 *
219 219
 	 * @param string $type slug of the block.
220
-	 * @param array $script_dependencies An array of view-side Javascript dependencies to be enqueued.
220
+	 * @param string[] $script_dependencies An array of view-side Javascript dependencies to be enqueued.
221 221
 	 *
222 222
 	 * @return void
223 223
 	 */
Please login to merge, or discard this patch.
class.jetpack.php 1 patch
Doc Comments   +45 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
 	}
1223 1223
 	/**
1224 1224
 	 * Does the network allow admins to add new users.
1225
-	 * @return boolian
1225
+	 * @return boolean
1226 1226
 	 */
1227 1227
 	static function network_add_new_users( $option = null ) {
1228 1228
 		return (bool) get_site_option( 'add_new_users' );
@@ -1327,7 +1327,7 @@  discard block
 block discarded – undo
1327 1327
 	 * database which could be set to anything as opposed to what this function returns.
1328 1328
 	 * @param  bool  $option
1329 1329
 	 *
1330
-	 * @return boolean
1330
+	 * @return string
1331 1331
 	 */
1332 1332
 	public function is_main_network_option( $option ) {
1333 1333
 		// return '1' or ''
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
 	 * Return true if we are with multi-site or multi-network false if we are dealing with single site.
1339 1339
 	 *
1340 1340
 	 * @param  string  $option
1341
-	 * @return boolean
1341
+	 * @return string
1342 1342
 	 */
1343 1343
 	public function is_multisite( $option ) {
1344 1344
 		return (string) (bool) is_multisite();
@@ -1400,7 +1400,7 @@  discard block
 block discarded – undo
1400 1400
 
1401 1401
 	/**
1402 1402
 	 * Returns true if the site has file write access false otherwise.
1403
-	 * @return string ( '1' | '0' )
1403
+	 * @return integer ( '1' | '0' )
1404 1404
 	 **/
1405 1405
 	public static function file_system_write_access() {
1406 1406
 		if ( ! function_exists( 'get_filesystem_method' ) ) {
@@ -2256,6 +2256,7 @@  discard block
 block discarded – undo
2256 2256
 	 * @param int $user_id
2257 2257
 	 * @param string $token
2258 2258
 	 * return bool
2259
+	 * @param boolean $is_master_user
2259 2260
 	 */
2260 2261
 	public static function update_user_token( $user_id, $token, $is_master_user ) {
2261 2262
 		// not designed for concurrent updates
@@ -2658,6 +2659,7 @@  discard block
 block discarded – undo
2658 2659
 
2659 2660
 	/**
2660 2661
 	 * Like core's get_file_data implementation, but caches the result.
2662
+	 * @param string $file
2661 2663
 	 */
2662 2664
 	public static function get_file_data( $file, $headers ) {
2663 2665
 		//Get just the filename from $file (i.e. exclude full path) so that a consistent hash is generated
@@ -2694,7 +2696,7 @@  discard block
 block discarded – undo
2694 2696
 	 *
2695 2697
 	 * @param string $tag Tag as it appears in each module heading.
2696 2698
 	 *
2697
-	 * @return mixed
2699
+	 * @return string
2698 2700
 	 */
2699 2701
 	public static function translate_module_tag( $tag ) {
2700 2702
 		return jetpack_get_module_i18n_tag( $tag );
@@ -2859,8 +2861,8 @@  discard block
 block discarded – undo
2859 2861
 	 * Rewrites ABSPATH (eg `/home/jetpack/wordpress/`) to ABSPATH, and if WP_CONTENT_DIR
2860 2862
 	 * is located outside of ABSPATH, rewrites that to WP_CONTENT_DIR.
2861 2863
 	 *
2862
-	 * @param $string
2863
-	 * @return mixed
2864
+	 * @param string $string
2865
+	 * @return string|null
2864 2866
 	 */
2865 2867
 	public static function alias_directories( $string ) {
2866 2868
 		// ABSPATH has a trailing slash.
@@ -3140,6 +3142,9 @@  discard block
 block discarded – undo
3140 3142
 		return self::update_active_modules( $new );
3141 3143
 	}
3142 3144
 
3145
+	/**
3146
+	 * @param string $module
3147
+	 */
3143 3148
 	public static function enable_module_configurable( $module ) {
3144 3149
 		$module = Jetpack::get_module_slug( $module );
3145 3150
 		add_filter( 'jetpack_module_configurable_' . $module, '__return_true' );
@@ -3150,21 +3155,33 @@  discard block
 block discarded – undo
3150 3155
 		return Jetpack::admin_url( array( 'page' => 'jetpack', 'configure' => $module ) );
3151 3156
 	}
3152 3157
 
3158
+	/**
3159
+	 * @param string $module
3160
+	 */
3153 3161
 	public static function module_configuration_load( $module, $method ) {
3154 3162
 		$module = Jetpack::get_module_slug( $module );
3155 3163
 		add_action( 'jetpack_module_configuration_load_' . $module, $method );
3156 3164
 	}
3157 3165
 
3166
+	/**
3167
+	 * @param string $module
3168
+	 */
3158 3169
 	public static function module_configuration_head( $module, $method ) {
3159 3170
 		$module = Jetpack::get_module_slug( $module );
3160 3171
 		add_action( 'jetpack_module_configuration_head_' . $module, $method );
3161 3172
 	}
3162 3173
 
3174
+	/**
3175
+	 * @param string $module
3176
+	 */
3163 3177
 	public static function module_configuration_screen( $module, $method ) {
3164 3178
 		$module = Jetpack::get_module_slug( $module );
3165 3179
 		add_action( 'jetpack_module_configuration_screen_' . $module, $method );
3166 3180
 	}
3167 3181
 
3182
+	/**
3183
+	 * @param string $module
3184
+	 */
3168 3185
 	public static function module_configuration_activation_screen( $module, $method ) {
3169 3186
 		$module = Jetpack::get_module_slug( $module );
3170 3187
 		add_action( 'display_activate_module_setting_' . $module, $method );
@@ -3172,6 +3189,9 @@  discard block
 block discarded – undo
3172 3189
 
3173 3190
 /* Installation */
3174 3191
 
3192
+	/**
3193
+	 * @param string $message
3194
+	 */
3175 3195
 	public static function bail_on_activation( $message, $deactivate = true ) {
3176 3196
 ?>
3177 3197
 <!doctype html>
@@ -3932,7 +3952,7 @@  discard block
 block discarded – undo
3932 3952
 	 * Add help to the Jetpack page
3933 3953
 	 *
3934 3954
 	 * @since Jetpack (1.2.3)
3935
-	 * @return false if not the Jetpack page
3955
+	 * @return false|null if not the Jetpack page
3936 3956
 	 */
3937 3957
 	function admin_help() {
3938 3958
 		$current_screen = get_current_screen();
@@ -4828,6 +4848,9 @@  discard block
 block discarded – undo
4828 4848
 		return $url;
4829 4849
 	}
4830 4850
 
4851
+	/**
4852
+	 * @return string
4853
+	 */
4831 4854
 	public static function nonce_url_no_esc( $actionurl, $action = -1, $name = '_wpnonce' ) {
4832 4855
 		$actionurl = str_replace( '&amp;', '&', $actionurl );
4833 4856
 		return add_query_arg( $name, wp_create_nonce( $action ), $actionurl );
@@ -5039,6 +5062,7 @@  discard block
 block discarded – undo
5039 5062
 	/**
5040 5063
 	 * Returns the requested Jetpack API URL
5041 5064
 	 *
5065
+	 * @param string $relative_url
5042 5066
 	 * @return string
5043 5067
 	 */
5044 5068
 	public static function api_url( $relative_url ) {
@@ -5230,6 +5254,7 @@  discard block
 block discarded – undo
5230 5254
 	 * Note these tokens are unique per call, NOT static per site for connecting.
5231 5255
 	 *
5232 5256
 	 * @since 2.6
5257
+	 * @param string $action
5233 5258
 	 * @return array
5234 5259
 	 */
5235 5260
 	public static function generate_secrets( $action, $user_id = false, $exp = 600 ) {
@@ -5763,7 +5788,6 @@  discard block
 block discarded – undo
5763 5788
 	/**
5764 5789
 	 * Report authentication status to the WP REST API.
5765 5790
 	 *
5766
-	 * @param  WP_Error|mixed $result Error from another authentication handler, null if we should handle it, or another value if not
5767 5791
 	 * @return WP_Error|boolean|null {@see WP_JSON_Server::check_authentication}
5768 5792
 	 */
5769 5793
 	public function wp_rest_authentication_errors( $value ) {
@@ -5773,6 +5797,10 @@  discard block
 block discarded – undo
5773 5797
 		return $this->rest_authentication_status;
5774 5798
 	}
5775 5799
 
5800
+	/**
5801
+	 * @param integer $timestamp
5802
+	 * @param string $nonce
5803
+	 */
5776 5804
 	function add_nonce( $timestamp, $nonce ) {
5777 5805
 		global $wpdb;
5778 5806
 		static $nonces_used_this_request = array();
@@ -5918,6 +5946,7 @@  discard block
 block discarded – undo
5918 5946
 	 * @param string $key
5919 5947
 	 * @param string $value
5920 5948
 	 * @param bool $restate private
5949
+	 * @return string
5921 5950
 	 */
5922 5951
 	public static function state( $key = null, $value = null, $restate = false ) {
5923 5952
 		static $state = array();
@@ -5974,6 +6003,9 @@  discard block
 block discarded – undo
5974 6003
 		Jetpack::state( null, null, true );
5975 6004
 	}
5976 6005
 
6006
+	/**
6007
+	 * @param string $file
6008
+	 */
5977 6009
 	public static function check_privacy( $file ) {
5978 6010
 		static $is_site_publicly_accessible = null;
5979 6011
 
@@ -6591,9 +6623,7 @@  discard block
 block discarded – undo
6591 6623
 	 *
6592 6624
 	 * Attached to `style_loader_src` filter.
6593 6625
 	 *
6594
-	 * @param string $tag The tag that would link to the external asset.
6595 6626
 	 * @param string $handle The registered handle of the script in question.
6596
-	 * @param string $href The url of the asset in question.
6597 6627
 	 */
6598 6628
 	public static function set_suffix_on_min( $src, $handle ) {
6599 6629
 		if ( false === strpos( $src, '.min.css' ) ) {
@@ -6774,8 +6804,8 @@  discard block
 block discarded – undo
6774 6804
 	 *  - Absolute URLs             `http://domain.com/feh.png`
6775 6805
 	 *  - Domain root relative URLs `/feh.png`
6776 6806
 	 *
6777
-	 * @param $css string: The raw CSS -- should be read in directly from the file.
6778
-	 * @param $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6807
+	 * @param string $css string: The raw CSS -- should be read in directly from the file.
6808
+	 * @param string $css_file_url : The URL that the file can be accessed at, for calculating paths from.
6779 6809
 	 *
6780 6810
 	 * @return mixed|string
6781 6811
 	 */
@@ -7004,7 +7034,7 @@  discard block
 block discarded – undo
7004 7034
 	 *
7005 7035
 	 * @param string $option_name
7006 7036
 	 *
7007
-	 * @return bool
7037
+	 * @return false|null
7008 7038
 	 */
7009 7039
 	public static function jumpstart_has_updated_module_option( $option_name = '' ) {
7010 7040
 		// Bail if Jump Start has already been dismissed
@@ -7045,7 +7075,7 @@  discard block
 block discarded – undo
7045 7075
 	/**
7046 7076
 	 * Stores and prints out domains to prefetch for page speed optimization.
7047 7077
 	 *
7048
-	 * @param mixed $new_urls
7078
+	 * @param string[] $new_urls
7049 7079
 	 */
7050 7080
 	public static function dns_prefetch( $new_urls = null ) {
7051 7081
 		static $prefetch_urls = array();
@@ -7091,7 +7121,6 @@  discard block
 block discarded – undo
7091 7121
 	}
7092 7122
 
7093 7123
 	/**
7094
-	 * @param mixed $result Value for the user's option
7095 7124
 	 * @return mixed
7096 7125
 	 */
7097 7126
 	function get_user_option_meta_box_order_dashboard( $sorted ) {
Please login to merge, or discard this patch.