mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
refactor: add modules folder to phpstan paths + fix errors
This commit is contained in:
parent
7a6d9df6db
commit
bb628f355f
166 changed files with 452 additions and 526 deletions
|
|
@ -26,7 +26,7 @@ use Modules\Fediverse\Objects\OrderedCollectionPage;
|
|||
class ActorController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $helpers = ['fediverse'];
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ class ActorController extends Controller
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->config = config(Fediverse::class);
|
||||
$this->config = config('Fediverse');
|
||||
}
|
||||
|
||||
public function _remap(string $method, string ...$params): mixed
|
||||
|
|
@ -89,7 +89,6 @@ class ActorController extends Controller
|
|||
);
|
||||
|
||||
// switch/case on activity type
|
||||
/** @phpstan-ignore-next-line */
|
||||
switch ($payload->type) {
|
||||
case 'Create':
|
||||
if ($payload->object->type === 'Note') {
|
||||
|
|
@ -192,7 +191,6 @@ class ActorController extends Controller
|
|||
->setJSON([]);
|
||||
case 'Undo':
|
||||
// switch/case on the type of activity to undo
|
||||
/** @phpstan-ignore-next-line */
|
||||
switch ($payload->object->type) {
|
||||
case 'Follow':
|
||||
// revert side-effect by removing follow from database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue