Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 830-832 (lines=3) @@
827
	public function partner_cancel( $args, $named_args ) {
828
		list( $token_json ) = $args;
829
830
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
831
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
832
		}
833
834
		if ( isset( $token->error ) ) {
835
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 906-908 (lines=3) @@
903
	public function partner_provision( $args, $named_args ) {
904
		list( $token_json ) = $args;
905
906
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
907
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
908
		}
909
910
		if ( isset( $token->error ) ) {
911
			$message = isset( $token->message )