Upgrade to Laravel 13
This commit is contained in:
parent
e8e2bff5e4
commit
9f012b01e4
117 changed files with 1878 additions and 2215 deletions
|
|
@ -61,7 +61,7 @@ class BookmarkService
|
|||
{
|
||||
$client = resolve(Client::class);
|
||||
try {
|
||||
$response = $client->request('GET', 'https://web.archive.org/save/' . $url);
|
||||
$response = $client->request('GET', 'https://web.archive.org/save/'.$url);
|
||||
} catch (ClientException $e) {
|
||||
// throw an exception to be caught
|
||||
throw new InternetArchiveException;
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ class UpdateHandler implements MicropubHandlerInterface
|
|||
if ($data->updateReplace !== null) {
|
||||
foreach ($data->updateReplace as $property => $value) {
|
||||
match ($property) {
|
||||
'content' => $note->note = is_array($value[0]) ? ($value[0]['html'] ?? $value[0]['value'] ?? null) : $value[0],
|
||||
'content' => $note->note = is_array($value[0]) ? ($value[0]['html'] ?? $value[0]['value'] ?? null) : $value[0],
|
||||
'syndication' => $this->applySyndication($note, $value),
|
||||
default => null,
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -97,8 +97,8 @@ class UpdateHandler implements MicropubHandlerInterface
|
|||
foreach ($delete as $property) {
|
||||
match ($property) {
|
||||
'syndication' => $this->clearSyndication($note),
|
||||
'photo' => $note->media()->delete(),
|
||||
default => null,
|
||||
'photo' => $note->media()->delete(),
|
||||
default => null,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class NoteService
|
|||
$matches
|
||||
);
|
||||
|
||||
return $matches[0][0] . ', ' . $matches[0][1];
|
||||
return $matches[0][0].', '.$matches[0][1];
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue