php/commands/src/CLI_Command.php
private function get_update_type_str( $assoc_args ) {
		$update_type = ' ';
		foreach ( array( 'major', 'minor', 'patch' ) as $type ) {
			if ( true === \WP_CLI\Utils\get_flag_value( $assoc_args, $type ) ) {
				$update_type = ' ' . $type . ' ';
				break;
			}
		}
		return $update_type;
	}
private function get_update_type_str( $assoc_args ) {
		$update_type = ' ';
		foreach ( array( 'major', 'minor', 'patch' ) as $type ) {
			if ( true === \WP_CLI\Utils\get_flag_value( $assoc_args, $type ) ) {
				$update_type = ' ' . $type . ' ';
				break;
			}
		}
		return $update_type;
	}
private function get_update_type_str ( $ assoc_args ) { $ update_type = ' ' ; foreach ( array ( 'major' , 'minor' , 'patch' ) as $ type ) { if ( true === \ WP_CLI \ Utils \ get_flag_value ( $ assoc_args , $ type ) ) { $ update_type = ' ' . $ type . ' ' ; break ; } } return $ update_type ; }
Get a string representing the type of update being checked for.
Get a string representing the type of update being checked for .