From: Reedy Date: Mon, 24 Sep 2018 13:08:31 +0000 (+0100) Subject: Remove unnecesary else blocks X-Git-Tag: 1.34.0-rc.0~4009^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=a2cad5be151d23ed9eb01559569dea20567bab55;p=lhc%2Fweb%2Fwiklou.git Remove unnecesary else blocks Change-Id: Ic11e0e6b86557cbffcc5faa54de218b4676b4712 --- diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index d28169f388..02a3d2cfe6 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -93,9 +93,9 @@ class MWTimestamp extends ConvertibleTimestamp { if ( $tz ) { $this->timestamp->setTimezone( $tz ); return new DateInterval( 'P0Y' ); - } else { - $data[0] = 'Offset'; } + + $data[0] = 'Offset'; } $diff = 0; @@ -189,9 +189,9 @@ class MWTimestamp extends ConvertibleTimestamp { $msg = wfMessage( $key ); if ( $msg->exists() ) { return $msg; - } else { - return new RawMessage( $tzMsg ); } + + return new RawMessage( $tzMsg ); } /**