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 ) );
@@ 908-910 (lines=3) @@
905
	public function partner_provision( $args, $named_args ) {
906
		list( $token_json ) = $args;
907
908
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
909
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
910
		}
911
912
		if ( isset( $token->error ) ) {
913
			$message = isset( $token->message )