src/Psecio/Iniscan/Command/ScanCommand/Output/Html.php
public function getOutputFilename($output)
	{
		// default behaviour / backwards compatibility
		$outputDir = $output;
		$outputFilename = $this->getDefaultOutputFilename();

		// Find out if a .htm(l) filename has been given in the output argument.
		if ($this->endsWith($output, ".htm") || $this->endsWith($output, ".html")) {
			$outputDir = dirname($output);
			$outputFilename = basename($output);
		}

		return $outputDir . DIRECTORY_SEPARATOR . $outputFilename;
	}
public function getOutputFilename($output)
	{
		// default behaviour / backwards compatibility
		$outputDir = $output;
		$outputFilename = $this->getDefaultOutputFilename();

		// Find out if a .htm(l) filename has been given in the output argument.
		if ($this->endsWith($output, ".htm") || $this->endsWith($output, ".html")) {
			$outputDir = dirname($output);
			$outputFilename = basename($output);
		}

		return $outputDir . DIRECTORY_SEPARATOR . $outputFilename;
	}
public function getOutputFilename ( $ output ) { // default behaviour / backwards compatibility $ outputDir = $ output ; $ outputFilename = $ this -> getDefaultOutputFilename ( ) ; // Find out if a .htm(l) filename has been given in the output argument. if ( $ this -> endsWith ( $ output , ".htm" ) || $ this -> endsWith ( $ output , ".html" ) ) { $ outputDir = dirname ( $ output ) ; $ outputFilename = basename ( $ output ) ; } return $ outputDir . DIRECTORY_SEPARATOR . $ outputFilename ; }
Returns path and filename for the output file.
@param $output The output path configured via its argument
Returns path and filename for the output file .