public function findDestination($destination)
	{
		if (is_file($destination))
		{
			return $destination;
		}

		if ($location = $this->finder->findFileReversed($destination))
		{
			return $location;
		}

		$paths = $this->finder->getPaths();

		if (empty($paths))
		{
			return false;
		}

		$last = end($paths);

		return $last.ltrim($destination, DIRECTORY_SEPARATOR);
	}
public function findDestination($destination)
	{
		if (is_file($destination))
		{
			return $destination;
		}

		if ($location = $this->finder->findFileReversed($destination))
		{
			return $location;
		}

		$paths = $this->finder->getPaths();

		if (empty($paths))
		{
			return false;
		}

		$last = end($paths);

		return $last.ltrim($destination, DIRECTORY_SEPARATOR);
	}
public function findDestination ( $ destination ) { if ( is_file ( $ destination ) ) { return $ destination ; } if ( $ location = $ this -> finder -> findFileReversed ( $ destination ) ) { return $ location ; } $ paths = $ this -> finder -> getPaths ( ) ; if ( empty ( $ paths ) ) { return false ; } $ last = end ( $ paths ) ; return $ last . ltrim ( $ destination , DIRECTORY_SEPARATOR ) ; }
Finds a config file

@param string $destination

@return string
Finds a config file