db: Use brackets `()` in operation for better readability
authorDerick Alangi <alangiderick@gmail.com>
Wed, 20 Mar 2019 16:24:35 +0000 (17:24 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Wed, 20 Mar 2019 18:02:06 +0000 (19:02 +0100)
Wrap the expression into () to improve readability of the code.

Change-Id: Id53ea4709a7601fd1354833a44bd652570c733e6

includes/db/DatabaseOracle.php

index a051d83..16bde4b 100644 (file)
@@ -116,7 +116,7 @@ class DatabaseOracle extends Database {
                        $this->setFlag( DBO_PERSISTENT );
                }
 
-               $session_mode = $this->flags & DBO_SYSDBA ? OCI_SYSDBA : OCI_DEFAULT;
+               $session_mode = ( $this->flags & DBO_SYSDBA ) ? OCI_SYSDBA : OCI_DEFAULT;
 
                Wikimedia\suppressWarnings();
                if ( $this->flags & DBO_PERSISTENT ) {