Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 926-928 (lines=3) @@
923
	public function partner_cancel( $args, $named_args ) {
924
		list( $token_json ) = $args;
925
926
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
927
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
928
		}
929
930
		if ( isset( $token->error ) ) {
931
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 1014-1016 (lines=3) @@
1011
	public function partner_provision( $args, $named_args ) {
1012
		list( $token_json ) = $args;
1013
1014
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
1015
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
1016
		}
1017
1018
		if ( isset( $token->error ) ) {
1019
			$message = isset( $token->message )