Code Duplication    Length = 3-3 lines in 2 locations

class.jetpack-cli.php 2 locations

@@ 774-776 (lines=3) @@
771
	public function partner_cancel( $args, $named_args ) {
772
		list( $token_json ) = $args;
773
774
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
775
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
776
		}
777
778
		if ( isset( $token->error ) ) {
779
			$this->partner_provision_error( new WP_Error( $token->error, $token->message ) );
@@ 841-843 (lines=3) @@
838
	public function partner_provision( $args, $named_args ) {
839
		list( $token_json ) = $args;
840
841
		if ( ! $token_json || ! ( $token = json_decode( $token_json ) ) ) {
842
			$this->partner_provision_error( new WP_Error( 'missing_access_token',  sprintf( __( 'Invalid token JSON: %s', 'jetpack' ), $token_json ) ) );
843
		}
844
845
		if ( isset( $token->error ) ) {
846
			$message = isset( $token->message )