protected static function moveFile(string $source, string $destination): bool
	{
		$source = realpath($source);

		if (empty($source))
		{
			die('Cannot move file. Source path invalid.');
		}

		if (! is_file($source))
		{
			return false;
		}

		return copy($source, $destination);
	}
protected static function moveFile(string $source, string $destination): bool
	{
		$source = realpath($source);

		if (empty($source))
		{
			die('Cannot move file. Source path invalid.');
		}

		if (! is_file($source))
		{
			return false;
		}

		return copy($source, $destination);
	}
protected static function moveFile ( string $ source , string $ destination ) : bool { $ source = realpath ( $ source ) ; if ( empty ( $ source ) ) { die ( 'Cannot move file. Source path invalid.' ) ; } if ( ! is_file ( $ source ) ) { return false ; } return copy ( $ source , $ destination ) ; }
Move a file.

@param string $source
@param string $destination

@return boolean
Move a file .