Completed
Push — rm/deprecated-code ( b426c0...586296 )
by Jeremy
40:55 queued 29:49
created
projects/packages/changelogger/lib/KeepAChangelogParser.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@
 block discarded – undo
89 89
 	 *
90 90
 	 * @param string   $haystack String to split.
91 91
 	 * @param string[] ...$needles Strings to split on. Earliest match in $haystack wins.
92
+	 * @param string $needles
92 93
 	 * @return string[] Two elements: The part before $needles and the part after, both trimmed.
93 94
 	 */
94 95
 	private function split( $haystack, ...$needles ) {
Please login to merge, or discard this patch.
projects/packages/identity-crisis/src/class-identity-crisis.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	/**
51 51
 	 * Initializer.
52 52
 	 *
53
-	 * @return object
53
+	 * @return Identity_Crisis
54 54
 	 */
55 55
 	public static function init() {
56 56
 		if ( is_null( self::$instance ) ) {
Please login to merge, or discard this patch.
projects/packages/connection/src/class-secrets.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@
 block discarded – undo
43 43
 	 * @param String       $action       The action name.
44 44
 	 * @param Integer|bool $user_id The user identifier. Defaults to `false`.
45 45
 	 * @param Integer      $exp          Expiration time in seconds.
46
+	 * @return string|boolean
46 47
 	 */
47 48
 	public function generate( $action, $user_id = false, $exp = 600 ) {
48 49
 		if ( false === $user_id ) {
Please login to merge, or discard this patch.
projects/packages/changelogger/src/Plugins/WordpressVersioning.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
 	 * Extract the index and count from a prerelease string.
139 139
 	 *
140 140
 	 * @param string|null $s String.
141
-	 * @return array Two elements: index and count.
141
+	 * @return integer[] Two elements: index and count.
142 142
 	 * @throws InvalidArgumentException If the string is invalid.
143 143
 	 */
144 144
 	private function parsePrerelease( $s ) {
Please login to merge, or discard this patch.
projects/packages/connection/src/class-manager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	/**
291 291
 	 * Verifies the signature of the current request.
292 292
 	 *
293
-	 * @return false|array
293
+	 * @return boolean
294 294
 	 */
295 295
 	public function verify_xml_rpc_signature() {
296 296
 		if ( is_null( $this->xmlrpc_verification ) ) {
@@ -1464,7 +1464,7 @@  discard block
 block discarded – undo
1464 1464
 	/**
1465 1465
 	 * Obtains the auth token.
1466 1466
 	 *
1467
-	 * @param array $data The request data.
1467
+	 * @param string $data The request data.
1468 1468
 	 * @return object|\WP_Error Returns the auth token on success.
1469 1469
 	 *                          Returns a \WP_Error on failure.
1470 1470
 	 */
Please login to merge, or discard this patch.
projects/packages/connection/src/class-tokens.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	 * @param int    $user_id The user id.
220 220
 	 * @param string $token The user token.
221 221
 	 * @param bool   $is_master_user Whether the user is the master user.
222
-	 * @return bool
222
+	 * @return boolean|null
223 223
 	 */
224 224
 	public function update_user_token( $user_id, $token, $is_master_user ) {
225 225
 		// Not designed for concurrent updates.
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 	 * Fetches a signed token.
496 496
 	 *
497 497
 	 * @param object $token the token.
498
-	 * @return WP_Error|string a signed token
498
+	 * @return string a signed token
499 499
 	 */
500 500
 	public function get_signed_token( $token ) {
501 501
 		if ( ! isset( $token->secret ) || empty( $token->secret ) ) {
Please login to merge, or discard this patch.
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -250,6 +250,9 @@
 block discarded – undo
250 250
 		}
251 251
 	}
252 252
 
253
+	/**
254
+	 * @param string $capability
255
+	 */
253 256
 	protected function current_user_can( $capability, $plugin = null ) {
254 257
 		// If this endpoint accepts site based authentication and a blog token is used, skip capabilities check.
255 258
 		if ( $this->accepts_site_based_authentication() ) {
Please login to merge, or discard this patch.
projects/packages/jitm/src/class-jitm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
 	 *
254 254
 	 * The list includes an empty string, which is used when no icon should be displayed.
255 255
 	 *
256
-	 * @return array The list of supported icons.
256
+	 * @return string[] The list of supported icons.
257 257
 	 */
258 258
 	public function get_supported_icons() {
259 259
 		return array(
Please login to merge, or discard this patch.
projects/packages/sync/src/class-functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	/**
187 187
 	 * Return a hosting provider using a set of known constants.
188 188
 	 *
189
-	 * @return mixed A host identifier string or false.
189
+	 * @return string|false A host identifier string or false.
190 190
 	 */
191 191
 	public function get_hosting_provider_by_known_constant() {
192 192
 		$hosting_provider_constants = array(
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	/**
215 215
 	 * Return a hosting provider using a set of known classes.
216 216
 	 *
217
-	 * @return mixed A host identifier string or false.
217
+	 * @return string|false A host identifier string or false.
218 218
 	 */
219 219
 	public function get_hosting_provider_by_known_class() {
220 220
 		$hosting_provider = false;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	/**
232 232
 	 * Return a hosting provider using a set of known functions.
233 233
 	 *
234
-	 * @return mixed A host identifier string or false.
234
+	 * @return string|false A host identifier string or false.
235 235
 	 */
236 236
 	public function get_hosting_provider_by_known_function() {
237 237
 		$hosting_provider = false;
Please login to merge, or discard this patch.