Use lowercase for PHP booleans and null
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
20c985ae8e
commit
3d44419cbd
@ -491,7 +491,7 @@ class Advisor
|
||||
$rules = array();
|
||||
$lines = array();
|
||||
|
||||
if ($file === FALSE) {
|
||||
if ($file === false) {
|
||||
$errors[] = sprintf(
|
||||
__('Error in reading file: The file \'%s\' does not exist or is not readable!'),
|
||||
$filename
|
||||
|
||||
@ -483,7 +483,7 @@ class Error extends Message
|
||||
$dest = @realpath($path);
|
||||
|
||||
/* Probably affected by open_basedir */
|
||||
if ($dest === FALSE) {
|
||||
if ($dest === false) {
|
||||
return basename($path);
|
||||
}
|
||||
|
||||
|
||||
@ -658,7 +658,7 @@ class LanguageManager
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
if (self::$instance === NULL) {
|
||||
if (self::$instance === null) {
|
||||
self::$instance = new LanguageManager;
|
||||
}
|
||||
return self::$instance;
|
||||
|
||||
@ -617,7 +617,7 @@ class Routines
|
||||
$routine['SPECIFIC_NAME']
|
||||
);
|
||||
|
||||
if ($definition == NULL) {
|
||||
if ($definition == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ class ZipExtension
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open($file);
|
||||
|
||||
if ($res === TRUE) {
|
||||
if ($res === true) {
|
||||
if ($zip->numFiles === 0) {
|
||||
$error_message = __('No files found inside ZIP archive!');
|
||||
$zip->close();
|
||||
@ -95,7 +95,7 @@ class ZipExtension
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open($file);
|
||||
|
||||
if ($res === TRUE) {
|
||||
if ($res === true) {
|
||||
for ($i = 0; $i < $zip->numFiles; $i++) {
|
||||
if (preg_match($regex, $zip->getNameIndex($i))) {
|
||||
$filename = $zip->getNameIndex($i);
|
||||
@ -120,7 +120,7 @@ class ZipExtension
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open($file);
|
||||
|
||||
if ($res === TRUE) {
|
||||
if ($res === true) {
|
||||
$num = $zip->numFiles;
|
||||
}
|
||||
return $num;
|
||||
|
||||
@ -70,7 +70,7 @@ class ServeConfigChecksTest extends PmaTestCase
|
||||
->getMock();
|
||||
|
||||
// Configure the stub.
|
||||
$configChecker->method('functionExists')->willReturn(False);
|
||||
$configChecker->method('functionExists')->willReturn(false);
|
||||
|
||||
$configChecker->performConfigChecks();
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ if (isset($_REQUEST['createview']) || isset($_REQUEST['alterview'])) {
|
||||
}
|
||||
|
||||
if (! empty($_REQUEST['view']['definer'])) {
|
||||
if (strpos($_REQUEST['view']['definer'], '@') === FALSE) {
|
||||
if (strpos($_REQUEST['view']['definer'], '@') === false) {
|
||||
$sql_query .= $sep . 'DEFINER='
|
||||
. PhpMyAdmin\Util::backquote($_REQUEST['view']['definer']);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user