ParsoidVirtualRESTService: Don't use "else if"
authorKunal Mehta <legoktm@gmail.com>
Sun, 1 Mar 2015 22:09:30 +0000 (14:09 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 5 Mar 2015 16:43:12 +0000 (16:43 +0000)
https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#C_borrowings

Change-Id: Ica51fd60e3da75d3b882cf3172ef7500afeab0db

includes/libs/virtualrest/ParsoidVirtualRESTService.php

index 03bdf0d..769cecf 100644 (file)
@@ -59,7 +59,7 @@ class ParsoidVirtualRESTService extends VirtualRESTService {
                                throw new Exception( "Only 'local' target wiki is currently supported" );
                        } elseif ( $version !== 'v1' ) {
                                throw new Exception( "Only version 1 exists" );
-                       } else if ( $reqType !== 'page' && $reqType !== 'transform' ) {
+                       } elseif ( $reqType !== 'page' && $reqType !== 'transform' ) {
                                throw new Exception( "Request type must be either 'page' or 'transform'" );
                        }