4
0
Fork 1

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

experimental
Bruno Aleixo 2022-01-30 16:41:54 +00:00
commit fb76775716
5 arquivos alterados com 4 adições e 8 exclusões

Ver arquivo

@ -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,

Ver arquivo

@ -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];
}
/**

Ver arquivo

@ -729,9 +729,8 @@ class Validate
/**
* Substr
*
* @param string &$date Date
* @param string $num Length
* @param false|string $opt Unknown
* @param string $num Length
* @param false|string $opt Unknown
*/
private static function substr(
string &$date,

Ver arquivo

@ -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

Ver arquivo

@ -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']]);