protected function success_or_failure( $response ) {
		list( $type, $msg ) = $response;

		if ( 'success' === $type ) {
			WP_CLI::success( $msg );
			$status = 0;
		} else {
			WP_CLI::warning( $msg );
			$status = 1;
		}

		return $status;
	}
protected function success_or_failure( $response ) {
		list( $type, $msg ) = $response;

		if ( 'success' === $type ) {
			WP_CLI::success( $msg );
			$status = 0;
		} else {
			WP_CLI::warning( $msg );
			$status = 1;
		}

		return $status;
	}
protected function success_or_failure ( $ response ) { list ( $ type , $ msg ) = $ response ; if ( 'success' === $ type ) { WP_CLI :: success ( $ msg ) ; $ status = 0 ; } else { WP_CLI :: warning ( $ msg ) ; $ status = 1 ; } return $ status ; }
Display success or warning based on response; return proper exit code.

@param array $response Formatted from a CRUD callback.
@return int $status
Display success or warning based on response ; return proper exit code .