[TOOLS][COMPONENTS][CORE] Ran cs-fixer on all files
This commit is contained in:
parent
162b01e2c5
commit
fb76775716
@ -92,7 +92,7 @@ class Notification extends Component
|
|||||||
// XXX: Unideal as in failures the rollback will leave behind a false notification,
|
// XXX: Unideal as in failures the rollback will leave behind a false notification,
|
||||||
// but most notifications (all) require flushing the objects first
|
// but most notifications (all) require flushing the objects first
|
||||||
// Should be okay as long as implementors bear this in mind
|
// 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(),
|
'activity_id' => $activity->getId(),
|
||||||
'target_id' => $target->getId(),
|
'target_id' => $target->getId(),
|
||||||
'reason' => $reason,
|
'reason' => $reason,
|
||||||
|
@ -70,7 +70,7 @@ class Subscription extends Component
|
|||||||
$cache_subscriber = Cache::delete(Actor::cacheKeys($subscriber_id)['subscribed']);
|
$cache_subscriber = Cache::delete(Actor::cacheKeys($subscriber_id)['subscribed']);
|
||||||
$cache_subscribed = Cache::delete(Actor::cacheKeys($subscribed_id)['subscribers']);
|
$cache_subscribed = Cache::delete(Actor::cacheKeys($subscribed_id)['subscribers']);
|
||||||
|
|
||||||
return [$cache_subscriber,$cache_subscribed];
|
return [$cache_subscriber, $cache_subscribed];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -729,9 +729,8 @@ class Validate
|
|||||||
/**
|
/**
|
||||||
* Substr
|
* Substr
|
||||||
*
|
*
|
||||||
* @param string &$date Date
|
* @param string $num Length
|
||||||
* @param string $num Length
|
* @param false|string $opt Unknown
|
||||||
* @param false|string $opt Unknown
|
|
||||||
*/
|
*/
|
||||||
private static function substr(
|
private static function substr(
|
||||||
string &$date,
|
string &$date,
|
||||||
|
@ -305,8 +305,6 @@ abstract class I18n
|
|||||||
* _m(string|string[] $msg, array $params) -- message
|
* _m(string|string[] $msg, array $params) -- message
|
||||||
* _m(string $ctx, string|string[] $msg, array $params) -- combination of the previous two
|
* _m(string $ctx, string|string[] $msg, array $params) -- combination of the previous two
|
||||||
*
|
*
|
||||||
* @param mixed ...$args
|
|
||||||
*
|
|
||||||
* @throws ServerException
|
* @throws ServerException
|
||||||
*
|
*
|
||||||
* @todo add parameters
|
* @todo add parameters
|
||||||
|
@ -58,7 +58,6 @@ abstract class Main
|
|||||||
$r->connect('panel', '/panel', [C\AdminPanel::class, 'site']);
|
$r->connect('panel', '/panel', [C\AdminPanel::class, 'site']);
|
||||||
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);
|
$r->connect('panel_site', '/panel/site', [C\AdminPanel::class, 'site']);
|
||||||
|
|
||||||
|
|
||||||
// TODO: don't do
|
// TODO: don't do
|
||||||
$r->connect('actor_circle', '/', RedirectController::class, ['defaults' => ['route' => 'feed_public']]);
|
$r->connect('actor_circle', '/', RedirectController::class, ['defaults' => ['route' => 'feed_public']]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user