forked from wallabag/wallabag
Modernize to PHP 7.4
This commit is contained in:
@ -40,13 +40,11 @@ abstract class HtmlImport extends AbstractImport
|
||||
return false;
|
||||
}
|
||||
|
||||
$entries = $hrefs->each(function (Crawler $node) {
|
||||
return [
|
||||
'url' => $node->attr('href'),
|
||||
'tags' => $node->attr('tags'),
|
||||
'created_at' => $node->attr('add_date'),
|
||||
];
|
||||
});
|
||||
$entries = $hrefs->each(fn (Crawler $node) => [
|
||||
'url' => $node->attr('href'),
|
||||
'tags' => $node->attr('tags'),
|
||||
'created_at' => $node->attr('add_date'),
|
||||
]);
|
||||
|
||||
if ($this->producer) {
|
||||
$this->parseEntriesForProducer($entries);
|
||||
|
||||
@ -56,13 +56,11 @@ class PocketHtmlImport extends HtmlImport
|
||||
return false;
|
||||
}
|
||||
|
||||
$entries = $hrefs->each(function (Crawler $node) {
|
||||
return [
|
||||
'url' => $node->attr('href'),
|
||||
'tags' => $node->attr('tags'),
|
||||
'created_at' => $node->attr('time_added'),
|
||||
];
|
||||
});
|
||||
$entries = $hrefs->each(fn (Crawler $node) => [
|
||||
'url' => $node->attr('href'),
|
||||
'tags' => $node->attr('tags'),
|
||||
'created_at' => $node->attr('time_added'),
|
||||
]);
|
||||
|
||||
if ($this->producer) {
|
||||
$this->parseEntriesForProducer($entries);
|
||||
|
||||
Reference in New Issue
Block a user