From ddbba62d03e8d5d586d73a20cbc6544b41c574a6 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Mon, 28 Sep 2015 15:43:19 +0300 Subject: [PATCH] Make lines short to pass phpcs in 2 files under includes/ Bug: T102614 Change-Id: Iae4d4fbdba88ebcd9bcb018a2a0015d0c0ac607c --- includes/ProtectionForm.php | 18 +++++++++++++++--- includes/Title.php | 6 +++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4cad7b745a..b6ba918d4d 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -384,7 +384,11 @@ class ProtectionForm { "mwProtect-$action-expires" ); - $expiryFormOptions = new XmlSelect( "wpProtectExpirySelection-$action", "mwProtectExpirySelection-$action", $this->mExpirySelection[$action] ); + $expiryFormOptions = new XmlSelect( + "wpProtectExpirySelection-$action", + "mwProtectExpirySelection-$action", + $this->mExpirySelection[$action] + ); $expiryFormOptions->setAttribute( 'tabindex', '2' ); if ( $this->disabled ) { $expiryFormOptions->setAttribute( 'disabled', 'disabled' ); @@ -397,12 +401,20 @@ class ProtectionForm { $timestamp = $lang->userTimeAndDate( $this->mExistingExpiry[$action], $user ); $d = $lang->userDate( $this->mExistingExpiry[$action], $user ); $t = $lang->userTime( $this->mExistingExpiry[$action], $user ); - $existingExpiryMessage = $context->msg( 'protect-existing-expiry', $timestamp, $d, $t ); + $existingExpiryMessage = $context->msg( + 'protect-existing-expiry', + $timestamp, + $d, + $t + ); } $expiryFormOptions->addOption( $existingExpiryMessage->text(), 'existing' ); } - $expiryFormOptions->addOption( $context->msg( 'protect-othertime-op' )->text(), 'othertime' ); + $expiryFormOptions->addOption( + $context->msg( 'protect-othertime-op' )->text(), + 'othertime' + ); foreach ( explode( ',', $scExpiryOptions ) as $option ) { if ( strpos( $option, ":" ) === false ) { $show = $value = $option; diff --git a/includes/Title.php b/includes/Title.php index e54c35e604..eac712bede 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -266,7 +266,11 @@ class Title { throw new InvalidArgumentException( '$text must be a string.' ); } elseif ( !is_string( $text ) ) { wfDebugLog( 'T76305', wfGetAllCallers( 5 ) ); - wfWarn( __METHOD__ . ': $text must be a string. This will throw an InvalidArgumentException in future.', 2 ); + wfWarn( + __METHOD__ . ': $text must be a string. ' . + 'This will throw an InvalidArgumentException in future.', + 2 + ); } try { -- 2.20.1