From: Amir E. Aharoni Date: Sun, 27 Sep 2015 07:45:31 +0000 (+0300) Subject: Make lines short to pass phpcs in Language.php X-Git-Tag: 1.31.0-rc.0~9760 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=50f546aa3e891a5dae126aef4086d28ea7af8f30;p=lhc%2Fweb%2Fwiklou.git Make lines short to pass phpcs in Language.php Bug: T102614 Change-Id: I14fd848398ce68bd646f36b196560f70352d5f49 --- diff --git a/languages/Language.php b/languages/Language.php index be97d83c21..50ed513734 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2551,10 +2551,13 @@ class Language { * * @param MWTimestamp $time * @param MWTimestamp|null $relativeTo The base timestamp to compare to (defaults to now) - * @param User|null $user User the timestamp is being generated for (or null to use main context's user) + * @param User|null $user User the timestamp is being generated for + * (or null to use main context's user) * @return string Formatted timestamp */ - public function getHumanTimestamp( MWTimestamp $time, MWTimestamp $relativeTo = null, User $user = null ) { + public function getHumanTimestamp( + MWTimestamp $time, MWTimestamp $relativeTo = null, User $user = null + ) { if ( $relativeTo === null ) { $relativeTo = new MWTimestamp(); } @@ -2589,7 +2592,9 @@ class Language { * @return string Human timestamp * @since 1.26 */ - private function getHumanTimestampInternal( MWTimestamp $ts, MWTimestamp $relativeTo, User $user ) { + private function getHumanTimestampInternal( + MWTimestamp $ts, MWTimestamp $relativeTo, User $user + ) { $diff = $ts->diff( $relativeTo ); $diffDay = (bool)( (int)$ts->timestamp->format( 'w' ) - (int)$relativeTo->timestamp->format( 'w' ) );