]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DBClean.php
Some more added lines
[friendica.git] / src / Worker / DBClean.php
index f123b2dd89d957cfa65346edafae84687f204d16..92c942522d78c03406eefa0e31365d2dc2c19ecd 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @file src/Worker/DBClean.php
- * @brief The script is called from time to time to clean the database entries and remove orphaned data.
+ * The script is called from time to time to clean the database entries and remove orphaned data.
  */
 
 namespace Friendica\Worker;
@@ -26,7 +26,7 @@ class DBClean {
        }
 
        /**
-        * @brief Fork the different DBClean processes
+        * Fork the different DBClean processes
         */
        private static function forkCleanProcess() {
                // Get the expire days for step 8 and 9
@@ -42,7 +42,8 @@ class DBClean {
        }
 
        /**
-        * @brief Remove orphaned database entries
+        * Remove orphaned database entries
+        *
         * @param integer $stage What should be deleted?
         *
         * Values for $stage:
@@ -60,8 +61,6 @@ class DBClean {
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        private static function removeOrphans($stage) {
-               $count = 0;
-
                // We split the deletion in many small tasks
                $limit = Config::get('system', 'dbclean-expire-limit', 1000);