mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
refactor: add phpstan and update code to adhere to level 5
- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
This commit is contained in:
parent
b691b927fe
commit
231d578d64
148 changed files with 11189 additions and 11421 deletions
|
|
@ -97,15 +97,17 @@ class HttpSignature
|
|||
throw new Exception('Malformed signature string.');
|
||||
}
|
||||
|
||||
// extract parts as $keyId, $headers and $signature variables
|
||||
extract($parts);
|
||||
// set $keyId, $headers and $signature variables
|
||||
$keyId = $parts['keyId'];
|
||||
$headers = $parts['headers'];
|
||||
$signature = $parts['signature'];
|
||||
|
||||
// Fetch the public key linked from keyId
|
||||
$actorRequest = new ActivityRequest($keyId);
|
||||
$actorResponse = $actorRequest->get();
|
||||
$actor = json_decode(
|
||||
$actorResponse->getBody(),
|
||||
null,
|
||||
false,
|
||||
512,
|
||||
JSON_THROW_ON_ERROR,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue