public function canonical($option)
	{
		if (is_array($option))
		{
			$option = implode('', $option);
		}
		$option = preg_replace('/[^A-Z0-9_\.-]/i', '', $option);
		if (substr($option, 0, strlen('com_')) != 'com_')
		{
			$option = 'com_' . $option;
		}
		return $option;
	}
public function canonical($option)
	{
		if (is_array($option))
		{
			$option = implode('', $option);
		}
		$option = preg_replace('/[^A-Z0-9_\.-]/i', '', $option);
		if (substr($option, 0, strlen('com_')) != 'com_')
		{
			$option = 'com_' . $option;
		}
		return $option;
	}
public function canonical ( $ option ) { if ( is_array ( $ option ) ) { $ option = implode ( '' , $ option ) ; } $ option = preg_replace ( '/[^A-Z0-9_\.-]/i' , '' , $ option ) ; if ( substr ( $ option , 0 , strlen ( 'com_' ) ) != 'com_' ) { $ option = 'com_' . $ option ; } return $ option ; }
Make sure component name follows naming conventions

@param   string  $option  The element value for the extension
@return  string
Make sure component name follows naming conventions