Completed
Push — renovate/pin-dependencies ( ef7d25...174081 )
by
unknown
390:06 queued 381:36
created
plugins/jetpack/_inc/lib/core-api/class-wpcom-rest-field-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,9 +109,9 @@
 block discarded – undo
109 109
 	 *
110 110
 	 * This cannot be extended: implement `->get()` instead.
111 111
 	 *
112
-	 * @param mixed           $object_data Probably an array. Whatever the endpoint returns.
112
+	 * @param integer           $object_data Probably an array. Whatever the endpoint returns.
113 113
 	 * @param string          $field_name Should always match `->field_name`
114
-	 * @param WP_REST_Request $request
114
+	 * @param integer $request
115 115
 	 * @param string          $object_type Should always match `->object_type`
116 116
 	 * @return mixed
117 117
 	 */
Please login to merge, or discard this patch.
projects/plugins/jetpack/_inc/lib/core-api/load-wpcom-endpoints.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
 	exit;
16 16
 }
17 17
 
18
+/**
19
+ * @param string $file_pattern
20
+ */
18 21
 function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) {
19 22
 	$plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern );
20 23
 
@@ -28,6 +31,9 @@  discard block
 block discarded – undo
28 31
 }
29 32
 
30 33
 // API v2 plugins: define a class, then call this function.
34
+/**
35
+ * @param string $class_name
36
+ */
31 37
 function wpcom_rest_api_v2_load_plugin( $class_name ) {
32 38
 	global $wpcom_rest_api_v2_plugins;
33 39
 
Please login to merge, or discard this patch.
projects/plugins/jetpack/class.jetpack-network.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@
 block discarded – undo
389 389
 	/**
390 390
 	 * Set the disconnect capability for multisite.
391 391
 	 *
392
-	 * @param array $caps The capabilities array.
392
+	 * @param string[] $caps The capabilities array.
393 393
 	 */
394 394
 	public function set_multisite_disconnect_cap( $caps ) {
395 395
 		// Can individual site admins manage their own connection?
Please login to merge, or discard this patch.
projects/plugins/jetpack/class.jetpack-post-images.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -687,7 +687,6 @@
 block discarded – undo
687 687
 	 * resized and cropped image.
688 688
 	 *
689 689
 	 * @param  string $src
690
-	 * @param  int    $dimension
691 690
 	 * @return string            Transformed image URL
692 691
 	 */
693 692
 	static function fit_image_url( $src, $width, $height ) {
Please login to merge, or discard this patch.
wpcom-fields/class-wpcom-rest-api-v2-attachment-videopress-data.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @param object $attachment The attachment object.
105 105
 	 *
106
-	 * @return false|int
106
+	 * @return boolean
107 107
 	 */
108 108
 	public function is_video( $attachment ) {
109 109
 		return isset( $attachment->post_mime_type ) && wp_startswith( $attachment->post_mime_type, 'video/' );
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 	 * Removes the jetpack_videopress field from the response if the
114 114
 	 * given attachment is not a video.
115 115
 	 *
116
-	 * @param WP_REST_Response $response Response from the attachment endpoint.
117
-	 * @param WP_Post          $attachment The original attachment object.
116
+	 * @param stdClass $response Response from the attachment endpoint.
117
+	 * @param stdClass          $attachment The original attachment object.
118 118
 	 *
119 119
 	 * @return mixed
120 120
 	 */
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @param mixed           $object Response from the attachment endpoint.
147 147
 	 * @param WP_REST_Request $request Request to the attachment endpoint.
148 148
 	 *
149
-	 * @return true
149
+	 * @return boolean
150 150
 	 */
151 151
 	public function get_permission_check( $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
152 152
 		return true;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * @param WP_Post         $object The attachment object.
161 161
 	 * @param WP_REST_Request $request Request to the attachment endpoint.
162 162
 	 *
163
-	 * @return true
163
+	 * @return boolean
164 164
 	 */
165 165
 	public function update_permission_check( $value, $object, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
166 166
 		return true;
Please login to merge, or discard this patch.
extensions/blocks/premium-content/_inc/subscription-service/class-jwt.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
 	 * Sign a string with a given key and algorithm.
187 187
 	 *
188 188
 	 * @param string          $msg    The message to sign.
189
-	 * @param string|resource $key    The secret key.
189
+	 * @param string $key    The secret key.
190 190
 	 * @param string          $alg    The signing algorithm.
191 191
 	 *                                Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256'.
192 192
 	 *
Please login to merge, or discard this patch.
_inc/subscription-service/class-token-subscription-service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	/**
150 150
 	 * Get the token stored in the auth cookie.
151 151
 	 *
152
-	 * @return ?string
152
+	 * @return string
153 153
 	 */
154 154
 	private function token_from_cookie() {
155 155
 		if ( isset( $_COOKIE[ self::JWT_AUTH_TOKEN_COOKIE_NAME ] ) ) {
Please login to merge, or discard this patch.
jetpack/_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-builder.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 *
92 92
 	 * @param $function array A function structure to apply to the query
93 93
 	 *
94
-	 * @return void
94
+	 * @return Jetpack_WPES_Query_Builder
95 95
 	 */
96 96
 	public function add_weighting_function( $function ) {
97 97
 		// check for danger.
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
 	 *
115 115
 	 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html
116 116
 	 *
117
-	 * @param $function string name of the function
117
+	 * @param string $function string name of the function
118 118
 	 * @param $params array functions parameters
119 119
 	 *
120
-	 * @return void
120
+	 * @return Jetpack_WPES_Query_Builder
121 121
 	 */
122 122
 	public function add_function( $function, $params ) {
123 123
 		$this->functions[ $function ][] = $params;
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 	 *
134 134
 	 * @see https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html
135 135
 	 *
136
-	 * @param $function string name of the decay function - linear, exp, or gauss
136
+	 * @param string $function string name of the decay function - linear, exp, or gauss
137 137
 	 * @param $params array The decay functions parameters, passed to ES directly
138 138
 	 *
139
-	 * @return void
139
+	 * @return Jetpack_WPES_Query_Builder
140 140
 	 */
141 141
 	public function add_decay( $function, $params ) {
142 142
 		$this->decays[ $function ][] = $params;
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 *
152 152
 	 * @param $mode string name of how to score
153 153
 	 *
154
-	 * @return void
154
+	 * @return Jetpack_WPES_Query_Builder
155 155
 	 */
156 156
 	public function add_score_mode_to_functions( $mode='multiply' ) {
157 157
 		$this->functions_score_mode = $mode;
@@ -177,6 +177,9 @@  discard block
 block discarded – undo
177 177
 		return $this;
178 178
 	}
179 179
 
180
+	/**
181
+	 * @param string $aggs_name
182
+	 */
180 183
 	public function add_aggs( $aggs_name, $aggs ) {
181 184
 		$this->aggs_query = true;
182 185
 		$this->aggs[$aggs_name] = $aggs;
Please login to merge, or discard this patch.
projects/plugins/beta/class-jetpack-beta.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -639,6 +639,7 @@  discard block
 block discarded – undo
639 639
 	 * Fetch latest Jetpack version.
640 640
 	 *
641 641
 	 * @param bool $is_dev_version - If JP Dev version is being queried.
642
+	 * @return string
642 643
 	 */
643 644
 	public static function get_new_jetpack_version( $is_dev_version = false ) {
644 645
 		$manifest = self::get_beta_manifest();
@@ -714,6 +715,7 @@  discard block
 block discarded – undo
714 715
 	 *
715 716
 	 * @param string $branch  - Branch.
716 717
 	 * @param string $section - Section.
718
+	 * @return string
717 719
 	 */
718 720
 	public static function get_install_url( $branch = null, $section = null ) {
719 721
 		if ( is_null( $section ) ) {
@@ -769,7 +771,7 @@  discard block
 block discarded – undo
769 771
 	/**
770 772
 	 * Get JP plugin data.
771 773
 	 *
772
-	 * @param mixed $plugin_file - JP or JP Dev plugin path.
774
+	 * @param string $plugin_file - JP or JP Dev plugin path.
773 775
 	 */
774 776
 	public static function get_jetpack_plugin_info( $plugin_file = null ) {
775 777
 
@@ -1418,7 +1420,7 @@  discard block
 block discarded – undo
1418 1420
 	/**
1419 1421
 	 * Checks if a dir is empty.
1420 1422
 	 *
1421
-	 * @param [type] $dir The absolute directory path to check.
1423
+	 * @param string $dir The absolute directory path to check.
1422 1424
 	 * @return boolean
1423 1425
 	 */
1424 1426
 	public static function is_dir_empty( $dir ) {
Please login to merge, or discard this patch.