From 4ff90c000e61bdedb0e64a086e7e4ab06c02df0d Mon Sep 17 00:00:00 2001
From: Adrian Cid Almaguer <adriancid@gmail.com>
Date: Thu, 12 Dec 2019 16:52:21 -0500
Subject: [PATCH] Issue #3100754 by adriancid: Fix coding standard issues

---
 node_revision_delete.module | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/node_revision_delete.module b/node_revision_delete.module
index bbdddd2..eb1e3f4 100755
--- a/node_revision_delete.module
+++ b/node_revision_delete.module
@@ -266,9 +266,13 @@ function node_revision_delete_cron() {
     // Flag used to count how many have been deleted in this cron run.
     $total_deleted = 0;
     foreach ($node_revision_delete_track as $content_type => $content_type_info) {
-      // Extracting variables.
-      extract($node_revision_delete_track[$content_type]);
-      $candidate_nids = _node_revision_delete_candidates($content_type, $minimum_revisions_to_keep, $minimum_age_to_delete, $when_to_delete);
+      $candidate_nids = _node_revision_delete_candidates(
+        $content_type,
+        $content_type_info['minimum_revisions_to_keep'],
+        $content_type_info['minimum_age_to_delete'],
+        $content_type_info['when_to_delete']
+      );
+
       if (!empty($candidate_nids)) {
         foreach ($candidate_nids as $nid) {
           $deleted_revisions = _node_revision_delete_do_delete($nid, $node_revision_delete_track[$content_type]['minimum_revisions_to_keep']);
-- 
GitLab