mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Use shorthand assignment for basic getters
This commit is contained in:
parent
99b5fd66f2
commit
7f5ffb4aea
21 changed files with 142 additions and 326 deletions
|
@ -21,13 +21,7 @@ class RssFeed extends Feed{
|
|||
// *******
|
||||
|
||||
protected function GetXmlString(): string{
|
||||
if(!isset($this->_XmlString)){
|
||||
$feed = Template::RssFeed(['url' => $this->Url, 'description' => $this->Description, 'title' => $this->Title, 'entries' => $this->Entries, 'updated' => NOW]);
|
||||
|
||||
$this->_XmlString = $this->CleanXmlString($feed);
|
||||
}
|
||||
|
||||
return $this->_XmlString;
|
||||
return $this->_XmlString ??= $this->CleanXmlString(Template::RssFeed(['url' => $this->Url, 'description' => $this->Description, 'title' => $this->Title, 'entries' => $this->Entries, 'updated' => NOW]));
|
||||
}
|
||||
|
||||
public function SaveIfChanged(): bool{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue