src/Files/ConfigFile.php
public function rename($file = NULL, $extension = NULL)
	{
		$target = (!is_null($file) ? $this->filename : $this->extension);
		$replacement = (!is_null($file) ? $file .'.'. $this->extension : $extension);

		$this->file = str_replace($target, $replacement, $this->file);
	}
public function rename($file = NULL, $extension = NULL)
	{
		$target = (!is_null($file) ? $this->filename : $this->extension);
		$replacement = (!is_null($file) ? $file .'.'. $this->extension : $extension);

		$this->file = str_replace($target, $replacement, $this->file);
	}
public function rename ( $ file = NULL , $ extension = NULL ) { $ target = ( ! is_null ( $ file ) ? $ this -> filename : $ this -> extension ) ; $ replacement = ( ! is_null ( $ file ) ? $ file . '.' . $ this -> extension : $ extension ) ; $ this -> file = str_replace ( $ target , $ replacement , $ this -> file ) ; }
Renames a file or changes files extension

@param String $file
@param String $extension
@return void
@author Dan Cox
Renames a file or changes files extension