diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-16 10:17:35 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-16 10:17:35 +0300 |
commit | c313d80271924797fedeffc38041cbfb85387433 (patch) | |
tree | c317cb7f96f0d29270cd4efb8e909b4023def74e /lib | |
parent | 480d1122fcb8719321148a26a1fdb56ac16088a2 (diff) |
Use strong comparisons
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Categories/Database.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php index fe2d4c1..5f04195 100644 --- a/lib/Categories/Database.php +++ b/lib/Categories/Database.php @@ -135,7 +135,7 @@ class Database implements ICategory { $result = $this->connection->executeQuery($sql); $database_size = 0; while ($row = $result->fetch()) { - if ((isset($row['Type']) && $row['Type'] != 'MRG_MyISAM') || (isset($row['Engine']) && ($row['Engine'] == 'MyISAM' || $row['Engine'] == 'InnoDB'))) { + if ((isset($row['Type']) && $row['Type'] !== 'MRG_MyISAM') || (isset($row['Engine']) && ($row['Engine'] === 'MyISAM' || $row['Engine'] === 'InnoDB'))) { $database_size += $row['Data_length'] + $row['Index_length']; } } @@ -157,7 +157,7 @@ class Database implements ICategory { $result = $this->connection->executeQuery($sql); $row = $result->fetch(); $result->closeCursor(); - if ($row['proname'] == 'pg_database_size') { + if ($row['proname'] === 'pg_database_size') { $database = $this->config->getSystemValue('dbname'); if (strpos($database, '.') !== false) { |