php/commands/src/CLI_Alias_Command.php
private function process_aliases( $aliases, $alias, $config_path, $operation = '' ) {
		// Convert data to YAML string.
		$yaml_data = Spyc::YAMLDump( $aliases );

		// Add data in config file.
		if ( file_put_contents( $config_path, $yaml_data ) ) {
			WP_CLI::success( "$operation '{$alias}' alias." );
		}
	}
private function process_aliases( $aliases, $alias, $config_path, $operation = '' ) {
		// Convert data to YAML string.
		$yaml_data = Spyc::YAMLDump( $aliases );

		// Add data in config file.
		if ( file_put_contents( $config_path, $yaml_data ) ) {
			WP_CLI::success( "$operation '{$alias}' alias." );
		}
	}
private function process_aliases ( $ aliases , $ alias , $ config_path , $ operation = '' ) { // Convert data to YAML string. $ yaml_data = Spyc :: YAMLDump ( $ aliases ) ; // Add data in config file. if ( file_put_contents ( $ config_path , $ yaml_data ) ) { WP_CLI :: success ( "$operation '{$alias}' alias." ) ; } }
Save aliases data to config file.

@param array  $aliases     Current aliases data.
@param string $alias       Name of alias.
@param string $config_path Path to config file.
@param string $operation   Current operation string fro message.
Save aliases data to config file .