Make lines short to pass phpcs in files under includes/
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Sun, 27 Sep 2015 08:10:34 +0000 (11:10 +0300)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 27 Sep 2015 16:10:59 +0000 (16:10 +0000)
Bug: T102614
Change-Id: I33ac3f4bb8116020ccda5d64fdd2924e78810546

includes/TemplateParser.php
includes/WikiMap.php

index d6b101b..3c62c14 100644 (file)
@@ -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];
                }
 
index 027ff72..7eaebdf 100644 (file)
@@ -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.