Code Duplication    Length = 4-4 lines in 2 locations

class.jetpack-xmlrpc-server.php 2 locations

@@ 184-187 (lines=4) @@
181
182
		@list( $secret_1, $secret_2, $secret_eol, $user_id ) = explode( ':', $secrets );
183
184
		if ( empty( $secret_1 ) || empty( $secret_2 ) || empty( $secret_eol ) ) {
185
			Jetpack_Options::delete_option( $action );
186
			return $this->error( new Jetpack_Error( 'verify_secrets_incomplete', 'Verification secrets are incomplete', 400 ) );
187
		}
188
189
		if ( $secret_eol < time() ) {
190
			Jetpack_Options::delete_option( $action );
@@ 206-209 (lines=4) @@
203
			} else if ( ! ctype_digit( $state ) ) {
204
				return $this->error( new Jetpack_Error( 'state_malformed', sprintf( 'The required "%s" parameter is malformed.', 'state' ), 400 ) );
205
			}
206
			if ( empty( $user_id ) || $user_id !== $state ) {
207
				Jetpack_Options::delete_option( $action );
208
				return $this->error( new Jetpack_Error( 'invalid_state', 'State is invalid', 400 ) );
209
			}
210
		}
211
212
		Jetpack_Options::delete_option( $action );