mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 04:57: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
|
|
@ -9,6 +9,7 @@
|
|||
namespace ActivityPub\Models;
|
||||
|
||||
use ActivityPub\Entities\Actor;
|
||||
use CodeIgniter\Database\Exceptions\DataException;
|
||||
use CodeIgniter\Events\Events;
|
||||
use CodeIgniter\Model;
|
||||
|
||||
|
|
@ -57,7 +58,7 @@ class ActorModel extends Model
|
|||
*/
|
||||
protected $useTimestamps = true;
|
||||
|
||||
public function getActorById($id)
|
||||
public function getActorById($id): Actor
|
||||
{
|
||||
$cacheName = config('ActivityPub')->cachePrefix . "actor#{$id}";
|
||||
if (!($found = cache($cacheName))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue