From c16e1a44905ede6d10dd85bfb56c34720bad2a84 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 9 Feb 2013 21:10:44 +0100 Subject: [PATCH] TRUE, FALSE and NULL must be lowercase From phpcs Change-Id: I09672012be28ae3985702e314442db00d154de24 --- includes/Export.php | 2 +- includes/db/DatabaseMssql.php | 14 +++++++------- includes/db/DatabaseOracle.php | 4 ++-- includes/parser/Parser.php | 2 +- includes/parser/Parser_LinkHooks.php | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/includes/Export.php b/includes/Export.php index 8893c6ccd3..eea1988052 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -960,7 +960,7 @@ class DumpOutput { * @return null */ function getFilenames() { - return NULL; + return null; } } diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 57ffd4f0bf..fcbbec7127 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -28,9 +28,9 @@ * @ingroup Database */ class DatabaseMssql extends DatabaseBase { - var $mInsertId = NULL; - var $mLastResult = NULL; - var $mAffectedRows = NULL; + var $mInsertId = null; + var $mLastResult = null; + var $mAffectedRows = null; var $mPort; @@ -353,7 +353,7 @@ class DatabaseMssql extends DatabaseBase { $sql = "sp_helpindex '" . $table . "'"; $res = $this->query( $sql, $fname ); if ( !$res ) { - return NULL; + return null; } $result = array(); @@ -498,7 +498,7 @@ class DatabaseMssql extends DatabaseBase { if ( $ret === false ) { throw new DBQueryError( $this, $this->getErrors(), $this->lastErrno(), $sql, $fname ); - } elseif ( $ret != NULL ) { + } elseif ( $ret != null ) { // remember number of rows affected $this->mAffectedRows = sqlsrv_rows_affected( $ret ); if ( !is_null($identity) ) { @@ -536,12 +536,12 @@ class DatabaseMssql extends DatabaseBase { if ( $ret === false ) { throw new DBQueryError( $this, $this->getErrors(), $this->lastErrno(), /*$sql*/ '', $fname ); - } elseif ( $ret != NULL ) { + } elseif ( $ret != null ) { // remember number of rows affected $this->mAffectedRows = sqlsrv_rows_affected( $ret ); return $ret; } - return NULL; + return null; } /** diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index 5195a83fa3..3ed4c1fe46 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -1101,11 +1101,11 @@ class DatabaseOracle extends DatabaseBase { } public function removeIdentifierQuotes( $s ) { - return strpos( $s, '/*Q*/' ) === FALSE ? $s : substr( $s, 5 ); + return strpos( $s, '/*Q*/' ) === false ? $s : substr( $s, 5 ); } public function isQuotedIdentifier( $s ) { - return strpos( $s, '/*Q*/' ) !== FALSE; + return strpos( $s, '/*Q*/' ) !== false; } private function wrapFieldForWhere( $table, &$col, &$val ) { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index d434e30e31..78bfc34e0a 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1755,7 +1755,7 @@ class Parser { wfProfileIn( __METHOD__ ); wfProfileIn( __METHOD__ . '-setup' ); - static $tc = FALSE, $e1, $e1_img; + static $tc = false, $e1, $e1_img; # the % is needed to support urlencoded titles as well if ( !$tc ) { $tc = Title::legalChars() . '#%'; diff --git a/includes/parser/Parser_LinkHooks.php b/includes/parser/Parser_LinkHooks.php index f6da6c743f..b2cdc41a5e 100644 --- a/includes/parser/Parser_LinkHooks.php +++ b/includes/parser/Parser_LinkHooks.php @@ -134,7 +134,7 @@ class Parser_LinkHooks extends Parser { wfProfileIn( __METHOD__ ); wfProfileIn( __METHOD__ . '-setup' ); - static $tc = FALSE, $titleRegex; //$e1, $e1_img; + static $tc = false, $titleRegex; //$e1, $e1_img; if( !$tc ) { # the % is needed to support urlencoded titles as well $tc = Title::legalChars() . '#%'; -- 2.20.1