Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 946-948 (lines=3) @@
943
	public function partner_cancel( $args, $named_args ) {
944
		list( $token_json ) = $args;
945
946
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
947
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
948
		}
949
950
		if ( isset( $token->error ) ) {
951
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 1034-1036 (lines=3) @@
1031
	public function partner_provision( $args, $named_args ) {
1032
		list( $token_json ) = $args;
1033
1034
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
1035
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
1036
		}
1037
1038
		if ( isset( $token->error ) ) {
1039
			$message = isset( $token->message )