src/Detectives/svgDetective.php
protected function leadSVG()
	{
		// Create a new sanitizer instance
		$sanitizer = new Sanitizer();

		// Load the dirty svg
		$dirtySVG = file_get_contents($this->file);

		// Pass it to the sanitizer and get it back clean
		$cleanSVG = $sanitizer->sanitize($dirtySVG);

		if (is_string($cleanSVG))
		{
			return $this->closeCase("svg", "image/svg+xml");
		}

		return false;
	}
protected function leadSVG()
	{
		// Create a new sanitizer instance
		$sanitizer = new Sanitizer();

		// Load the dirty svg
		$dirtySVG = file_get_contents($this->file);

		// Pass it to the sanitizer and get it back clean
		$cleanSVG = $sanitizer->sanitize($dirtySVG);

		if (is_string($cleanSVG))
		{
			return $this->closeCase("svg", "image/svg+xml");
		}

		return false;
	}
protected function leadSVG ( ) { // Create a new sanitizer instance
 $ sanitizer = new Sanitizer ( ) ; // Load the dirty svg
 $ dirtySVG = file_get_contents ( $ this -> file ) ; // Pass it to the sanitizer and get it back clean
 $ cleanSVG = $ sanitizer -> sanitize ( $ dirtySVG ) ; if ( is_string ( $ cleanSVG ) ) { return $ this -> closeCase ( "svg" , "image/svg+xml" ) ; } return false ; }
Checks if thise file is a valid SVG.

@return boolean|null
Checks if thise file is a valid SVG .