From 9f4c895190679f42c66618f714f7f0d4074751b3 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sun, 27 Sep 2015 11:10:34 +0300 Subject: [PATCH] Make lines short to pass phpcs in files under includes/ Bug: T102614 Change-Id: I33ac3f4bb8116020ccda5d64fdd2924e78810546 --- includes/TemplateParser.php | 4 +++- includes/WikiMap.php | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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. -- 2.20.1