From e9de9529808b8691ffe4154267a0d46e984e9de7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:15:25 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/Model/BrokenExternalPageTrackStatus.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/BrokenExternalPageTrackStatus.php b/src/Model/BrokenExternalPageTrackStatus.php index 4178a2a..490bc93 100644 --- a/src/Model/BrokenExternalPageTrackStatus.php +++ b/src/Model/BrokenExternalPageTrackStatus.php @@ -37,7 +37,7 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv */ public static function get_latest() { - return self::get() + return BrokenExternalPageTrackStatus::get() ->sort('ID', 'DESC') ->first(); } @@ -118,13 +118,13 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv public static function get_or_create() { // Check the current status - $status = self::get_latest(); + $status = BrokenExternalPageTrackStatus::get_latest(); if ($status && $status->Status == 'Running') { $status->updateStatus(); return $status; } - return self::create_status(); + return BrokenExternalPageTrackStatus::create_status(); } /** @@ -135,7 +135,7 @@ class BrokenExternalPageTrackStatus extends DataObject implements i18nEntityProv public static function create_status() { // If the script is to be started create a new status - $status = self::create(); + $status = BrokenExternalPageTrackStatus::create(); $status->updateJobInfo('Creating new tracking object'); // Setup all pages to test