From: Amir E. Aharoni Date: Sun, 27 Sep 2015 08:10:34 +0000 (+0300) Subject: Make lines short to pass phpcs in files under includes/ X-Git-Tag: 1.31.0-rc.0~9753 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=9f4c895190679f42c66618f714f7f0d4074751b3;p=lhc%2Fweb%2Fwiklou.git Make lines short to pass phpcs in files under includes/ Bug: T102614 Change-Id: I33ac3f4bb8116020ccda5d64fdd2924e78810546 --- diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index d6b101b26d..3c62c14002 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -79,7 +79,9 @@ class TemplateParser { */ 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]; } diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 027ff72f9f..7eaebdfcc4 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -159,7 +159,8 @@ class WikiReference { 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; } } @@ -169,7 +170,8 @@ class WikiReference { * * @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.