mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Enable some additional PHPStan rules and fix some type issues
This commit is contained in:
parent
c9e5026cf4
commit
a019d5e87c
8 changed files with 21 additions and 18 deletions
|
@ -53,7 +53,7 @@ class AtomFeed extends Feed{
|
|||
|
||||
$currentEntries = [];
|
||||
foreach($this->Entries as $entry){
|
||||
$obj = new StdClass();
|
||||
$obj = new stdClass();
|
||||
if($entry instanceof Ebook){
|
||||
if($entry->EbookUpdated !== null){
|
||||
$obj->Updated = $entry->EbookUpdated->format(Enums\DateTimeFormat::Iso->value);
|
||||
|
@ -75,7 +75,7 @@ class AtomFeed extends Feed{
|
|||
$xml = new SimpleXMLElement(str_replace('xmlns=', 'ns=', file_get_contents($path)));
|
||||
|
||||
foreach($xml->xpath('/feed/entry') ?: [] as $entry){
|
||||
$obj = new StdClass();
|
||||
$obj = new stdClass();
|
||||
$obj->Updated = $entry->updated;
|
||||
$obj->Id = $entry->id;
|
||||
$oldEntries[] = $obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue