Skip to content

Commit 5083d58

Browse files
author
Younès El Biache
committed
cleanup
1 parent c956972 commit 5083d58

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Providers/Dcterms.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function getAuthorName()
5959
*/
6060
public function getPublishedTime()
6161
{
62-
return $this->bag->get('date');
62+
foreach (['date', 'date.created', 'date.issued'] as $key) {
63+
if ($found = $this->bag->get($key)) {
64+
return $found;
65+
}
66+
}
6367
}
6468
}

src/Providers/Html.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ public function getPublishedTime()
142142
'article:published_time',
143143
'created',
144144
'date',
145-
'date.created',
146-
'date.issued',
147145
'datepublished',
148146
'datePublished',
149147
'newsrepublic:publish_date',

0 commit comments

Comments
 (0)