]> git.mxchange.org Git - friendica.git/commitdiff
Rename DBA::affected_rows to DBA::affectedRows
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Jul 2018 01:58:15 +0000 (21:58 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Jul 2018 23:27:34 +0000 (19:27 -0400)
src/Database/DBA.php
src/Model/Item.php
src/Worker/Expire.php

index 3fae84c76637c216ae7d90fe4fbf43af131d34ae..1512770045b960dd1a731f43dd56c56c5f6f3ba2 100644 (file)
@@ -704,7 +704,7 @@ class DBA
         *
         * @return int Number of rows
         */
-       public static function affected_rows() {
+       public static function affectedRows() {
                return self::$affected_rows;
        }
 
index 5db1b0bb45d7c2f7c96d69422c40cdfc9e426b25..85c4ce3c01070821da9f8a48ac35b88baaa171f2 100644 (file)
@@ -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)) {
 
index 7dd5a9b5a79581922b1265494f84b9a6a32c0db2..d40d72eca10101a2921e636139aef1175566adde 100644 (file)
@@ -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'))) {