Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 859-861 (lines=3) @@
856
	public function partner_cancel( $args, $named_args ) {
857
		list( $token_json ) = $args;
858
859
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
860
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
861
		}
862
863
		if ( isset( $token->error ) ) {
864
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 947-949 (lines=3) @@
944
	public function partner_provision( $args, $named_args ) {
945
		list( $token_json ) = $args;
946
947
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
948
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
949
		}
950
951
		if ( isset( $token->error ) ) {
952
			$message = isset( $token->message )