From b48a788430c7d55320d26507f3a0ca025fdd84ec Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 2 Jul 2022 16:50:59 -0500 Subject: [PATCH] Fix some naming errors and code cleanup --- lib/Artwork.php | 7 ------- lib/NewsletterSubscriber.php | 8 ++++---- lib/Patron.php | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 lib/Artwork.php diff --git a/lib/Artwork.php b/lib/Artwork.php deleted file mode 100644 index 31530e8f..00000000 --- a/lib/Artwork.php +++ /dev/null @@ -1,7 +0,0 @@ -Url === null){ - $this->Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid; + if($this->_Url === null){ + $this->_Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid; } - return $this->Url; + return $this->_Url; } diff --git a/lib/Patron.php b/lib/Patron.php index f3f94311..f6d65296 100644 --- a/lib/Patron.php +++ b/lib/Patron.php @@ -6,7 +6,7 @@ use Safe\DateTime; */ class Patron extends PropertiesBase{ public $UserId = null; - protected $User = null; + protected $_User = null; public $IsAnonymous; public $AlternateName; public $IsSubscribedToEmails;