protected function requireFile(string $file)
	{
		$file = $this->sanitizeFilename($file);

		if (is_file($file))
		{
			require_once $file;

			return $file;
		}

		return false;
	}
protected function requireFile(string $file)
	{
		$file = $this->sanitizeFilename($file);

		if (is_file($file))
		{
			require_once $file;

			return $file;
		}

		return false;
	}
protected function requireFile ( string $ file ) { $ file = $ this -> sanitizeFilename ( $ file ) ; if ( is_file ( $ file ) ) { require_once $ file ; return $ file ; } return false ; }
A central way to require a file is loaded. Split out primarily
for testing purposes.

@param string $file

@return string|false The filename on success, false if the file is not loaded
A central way to require a file is loaded . Split out primarily for testing purposes .