library/QATools/QATools/PageObject/Url/Normalizer.php
public function normalize(PageUrlAnnotation $annotation)
	{
		$parser = new Parser($this->baseUrl);
		$parser->merge(new Parser($annotation->url));

		$parser->setParams(array_merge($parser->getParams(), $annotation->params));

		$ret = $parser->getComponents();

		if ( $annotation->secure !== null && !empty($ret['scheme']) ) {
			$ret['scheme'] = $annotation->secure ? 'https' : 'http';
		}

		return $ret;
	}
public function normalize(PageUrlAnnotation $annotation)
	{
		$parser = new Parser($this->baseUrl);
		$parser->merge(new Parser($annotation->url));

		$parser->setParams(array_merge($parser->getParams(), $annotation->params));

		$ret = $parser->getComponents();

		if ( $annotation->secure !== null && !empty($ret['scheme']) ) {
			$ret['scheme'] = $annotation->secure ? 'https' : 'http';
		}

		return $ret;
	}
public function normalize ( PageUrlAnnotation $ annotation ) { $ parser = new Parser ( $ this -> baseUrl ) ; $ parser -> merge ( new Parser ( $ annotation -> url ) ) ; $ parser -> setParams ( array_merge ( $ parser -> getParams ( ) , $ annotation -> params ) ) ; $ ret = $ parser -> getComponents ( ) ; if ( $ annotation -> secure !== null && ! empty ( $ ret [ 'scheme' ] ) ) { $ ret [ 'scheme' ] = $ annotation -> secure ? 'https' : 'http' ; } return $ ret ; }
Returns normalized url.

@param PageUrlAnnotation $annotation The page url annotation.

@return array
Returns normalized url .