Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 822-824 (lines=3) @@
819
	public function partner_cancel( $args, $named_args ) {
820
		list( $token_json ) = $args;
821
822
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
823
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
824
		}
825
826
		if ( isset( $token->error ) ) {
827
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 894-896 (lines=3) @@
891
	public function partner_provision( $args, $named_args ) {
892
		list( $token_json ) = $args;
893
894
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
895
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
896
		}
897
898
		if ( isset( $token->error ) ) {
899
			$message = isset( $token->message )