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 ) );
@@ 895-897 (lines=3) @@
892
	public function partner_provision( $args, $named_args ) {
893
		list( $token_json ) = $args;
894
895
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
896
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
897
		}
898
899
		if ( isset( $token->error ) ) {
900
			$message = isset( $token->message )