From e42cf4d4fc723ed8ede2517520b1c08763f8aeb7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 20 Jul 2018 21:58:15 -0400 Subject: [PATCH] Rename DBA::affected_rows to DBA::affectedRows --- src/Database/DBA.php | 2 +- src/Model/Item.php | 2 +- src/Worker/Expire.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 3fae84c766..1512770045 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -704,7 +704,7 @@ class DBA * * @return int Number of rows */ - public static function affected_rows() { + public static function affectedRows() { return self::$affected_rows; } diff --git a/src/Model/Item.php b/src/Model/Item.php index 5db1b0bb45..85c4ce3c01 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -809,7 +809,7 @@ class Item extends BaseObject } // When there is no content for the "old" item table, this will count the fetched items - $rows = DBA::affected_rows(); + $rows = DBA::affectedRows(); while ($item = DBA::fetch($items)) { diff --git a/src/Worker/Expire.php b/src/Worker/Expire.php index 7dd5a9b5a7..d40d72eca1 100644 --- a/src/Worker/Expire.php +++ b/src/Worker/Expire.php @@ -52,12 +52,12 @@ class Expire logger('Deleting orphaned item activities - start', LOGGER_DEBUG); $condition = ["NOT EXISTS (SELECT `iaid` FROM `item` WHERE `item`.`iaid` = `item-activity`.`id`)"]; DBA::delete('item-activity', $condition); - logger('Orphaned item activities deleted: ' . DBA::affected_rows(), LOGGER_DEBUG); + logger('Orphaned item activities deleted: ' . DBA::affectedRows(), LOGGER_DEBUG); logger('Deleting orphaned item content - start', LOGGER_DEBUG); $condition = ["NOT EXISTS (SELECT `icid` FROM `item` WHERE `item`.`icid` = `item-content`.`id`)"]; DBA::delete('item-content', $condition); - logger('Orphaned item content deleted: ' . DBA::affected_rows(), LOGGER_DEBUG); + logger('Orphaned item content deleted: ' . DBA::affectedRows(), LOGGER_DEBUG); // make this optional as it could have a performance impact on large sites if (intval(Config::get('system', 'optimize_items'))) { -- 2.39.5