[TOOLS][COMPONENTS][CORE] Ran cs-fixer on all files

This commit is contained in:
Bruno Aleixo 2022-01-30 16:41:54 +00:00
parent 162b01e2c5
commit fb76775716
5 changed files with 4 additions and 8 deletions

View File

@ -92,7 +92,7 @@ class Notification extends Component
// XXX: Unideal as in failures the rollback will leave behind a false notification,
// but most notifications (all) require flushing the objects first
// Should be okay as long as implementors bear this in mind
DB::wrapInTransaction(fn() => DB::persist(Entity\Notification::create([
DB::wrapInTransaction(fn () => DB::persist(Entity\Notification::create([
'activity_id' => $activity->getId(),
'target_id' => $target->getId(),
'reason' => $reason,

View File

@ -70,7 +70,7 @@ class Subscription extends Component
$cache_subscriber = Cache::delete(Actor::cacheKeys($subscriber_id)['subscribed']);
$cache_subscribed = Cache::delete(Actor::cacheKeys($subscribed_id)['subscribers']);
return [$cache_subscriber,$cache_subscribed];
return [$cache_subscriber, $cache_subscribed];
}
/**

View File

@ -729,7 +729,6 @@ class Validate
/**
* Substr
*
* @param string &$date Date
* @param string $num Length
* @param false|string $opt Unknown
*/

View File

@ -305,8 +305,6 @@ abstract class I18n
* _m(string|string[] $msg, array $params) -- message
* _m(string $ctx, string|string[] $msg, array $params) -- combination of the previous two
*
* @param mixed ...$args
*
* @throws ServerException
*
* @todo add parameters

View File

@ -58,7 +58,6 @@ abstract class Main
$r->connect('panel', '/panel', [C\AdminPanel::class, 'site']);
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);
// TODO: don't do
$r->connect('actor_circle', '/', RedirectController::class, ['defaults' => ['route' => 'feed_public']]);