mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 04:27: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
|
|
@ -72,9 +72,9 @@ class ActorObject extends ObjectType
|
|||
protected $icon = [];
|
||||
|
||||
/**
|
||||
* @var object
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $publicKey;
|
||||
protected $publicKey = [];
|
||||
|
||||
public function __construct(Actor $actor)
|
||||
{
|
||||
|
|
@ -101,10 +101,12 @@ class ActorObject extends ObjectType
|
|||
'url' => $actor->avatar_image_url,
|
||||
];
|
||||
|
||||
$this->publicKey = [
|
||||
'id' => $actor->key_id,
|
||||
'owner' => $actor->uri,
|
||||
'publicKeyPem' => $actor->public_key,
|
||||
];
|
||||
if ($actor->public_key !== null) {
|
||||
$this->publicKey = [
|
||||
'id' => $actor->public_key_id,
|
||||
'owner' => $actor->uri,
|
||||
'publicKeyPem' => $actor->public_key,
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue