From: Amir E. Aharoni Date: Sat, 26 Sep 2015 09:58:36 +0000 (+0300) Subject: ImagePage.php: Make lines shorter to make phpcs happier X-Git-Tag: 1.31.0-rc.0~9811 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c5cb8fdc237385fd5f232995e442346f92df523d;p=lhc%2Fweb%2Fwiklou.git ImagePage.php: Make lines shorter to make phpcs happier Change-Id: I7207bef25bdc82c92dd4adc669468513f367eda6 --- diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 9b9e3cbdc7..e1cd76cb70 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -248,7 +248,9 @@ class ImagePage extends Article { Hooks::run( 'ImagePageShowTOC', array( $this, &$r ) ); if ( $metadata ) { - $r[] = '
  • ' . $this->getContext()->msg( 'metadata' )->escaped() . '
  • '; + $r[] = '
  • ' . + $this->getContext()->msg( 'metadata' )->escaped() . + '
  • '; } return ''; @@ -389,9 +391,13 @@ class ImagePage extends Article { } if ( count( $otherSizes ) ) { $msgsmall .= ' ' . - Html::rawElement( 'span', array( 'class' => 'mw-filepage-other-resolutions' ), - $this->getContext()->msg( 'show-big-image-other' )->rawParams( $lang->pipeList( $otherSizes ) )-> - params( count( $otherSizes ) )->parse() + Html::rawElement( + 'span', + array( 'class' => 'mw-filepage-other-resolutions' ), + $this->getContext()->msg( 'show-big-image-other' ) + ->rawParams( $lang->pipeList( $otherSizes ) ) + ->params( count( $otherSizes ) ) + ->parse() ); } } elseif ( $width == 0 && $height == 0 ) { @@ -667,9 +673,14 @@ EOT $wrap = "
    \n$1\n
    \n"; $repo = $this->mPage->getFile()->getRepo()->getDisplayName(); - if ( $descUrl && $descText && $this->getContext()->msg( 'sharedupload-desc-here' )->plain() !== '-' ) { + if ( $descUrl && + $descText && + $this->getContext()->msg( 'sharedupload-desc-here' )->plain() !== '-' + ) { $out->wrapWikiMsg( $wrap, array( 'sharedupload-desc-here', $repo, $descUrl ) ); - } elseif ( $descUrl && $this->getContext()->msg( 'sharedupload-desc-there' )->plain() !== '-' ) { + } elseif ( $descUrl && + $this->getContext()->msg( 'sharedupload-desc-there' )->plain() !== '-' + ) { $out->wrapWikiMsg( $wrap, array( 'sharedupload-desc-there', $repo, $descUrl ) ); } else { $out->wrapWikiMsg( $wrap, array( 'sharedupload', $repo ), ''/*BACKCOMPAT*/ ); @@ -854,7 +865,9 @@ EOT $liContents = $link; } elseif ( count( $redirects[$element->page_title] ) === 0 ) { # Redirect without usages - $liContents = $this->getContext()->msg( 'linkstoimage-redirect' )->rawParams( $link, '' )->parse(); + $liContents = $this->getContext()->msg( 'linkstoimage-redirect' ) + ->rawParams( $link, '' ) + ->parse(); } else { # Redirect with usages $li = ''; @@ -923,7 +936,10 @@ EOT } else { $link = Linker::makeExternalLink( $file->getDescriptionUrl(), $file->getTitle()->getPrefixedText() ); - $fromSrc = $this->getContext()->msg( 'shared-repo-from', $file->getRepo()->getDisplayName() )->text(); + $fromSrc = $this->getContext()->msg( + 'shared-repo-from', + $file->getRepo()->getDisplayName() + )->text(); } $out->addHTML( "
  • {$link} {$fromSrc}
  • \n" ); } @@ -1068,8 +1084,10 @@ EOT ); $submit = Xml::submitButton( $this->getContext()->msg( 'img-lang-go' )->text() ); - $formContents = $this->getContext()->msg( 'img-lang-info' )->rawParams( $select, $submit )->parse() - . Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ); + $formContents = $this->getContext()->msg( 'img-lang-info' ) + ->rawParams( $select, $submit ) + ->parse(); + $formContents .= Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ); $langSelectLine = Html::rawElement( 'div', array( 'id' => 'mw-imglangselector-line' ), Html::rawElement( 'form', array( 'action' => $wgScript ), $formContents ) @@ -1141,7 +1159,9 @@ EOT } else { # Creating thumb links triggers thumbnail generation. # Just generate the thumb for the current users prefs. - $thumbSizes = array( $this->getImageLimitsFromOption( $this->getContext()->getUser(), 'thumbsize' ) ); + $thumbSizes = array( + $this->getImageLimitsFromOption( $this->getContext()->getUser(), 'thumbsize' ) + ); if ( !$this->displayImg->mustRender() ) { // We can safely include a link to the "full-size" preview, // without actually rendering.