*/
protected function getTemplate( $templateName ) {
// If a renderer has already been defined for this template, reuse it
- if ( isset( $this->renderers[$templateName] ) && is_callable( $this->renderers[$templateName] ) ) {
+ if ( isset( $this->renderers[$templateName] ) &&
+ is_callable( $this->renderers[$templateName] )
+ ) {
return $this->renderers[$templateName];
}
if ( $parsed ) {
return $parsed['host'];
} else {
- // Invalid server spec. There's no sane thing to do here, so just return the canonical server name in full
+ // Invalid server spec.
+ // There's no sane thing to do here, so just return the canonical server name in full.
return $this->mCanonicalServer;
}
}
*
* @todo FIXME: This may be generalized...
*
- * @param string $page Page name (must be normalised before calling this function! May contain a section part.)
+ * @param string $page Page name (must be normalised before calling this function!
+ * May contain a section part.)
* @param string|null $fragmentId
*
* @return string relative URL, without the server part.