Sfoglia il codice sorgente

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

experimental
Bruno Aleixo 10 mesi fa
parent
commit
fb76775716
5 ha cambiato i file con 4 aggiunte e 8 eliminazioni
  1. +1
    -1
      components/Notification/Notification.php
  2. +1
    -1
      components/Subscription/Subscription.php
  3. +2
    -3
      extlib/Validate.php
  4. +0
    -2
      src/Core/I18n/I18n.php
  5. +0
    -1
      src/Routes/Main.php

+ 1
- 1
components/Notification/Notification.php Vedi 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,


+ 1
- 1
components/Subscription/Subscription.php Vedi 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];
}

/**


+ 2
- 3
extlib/Validate.php Vedi File

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


+ 0
- 2
src/Core/I18n/I18n.php Vedi 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


+ 0
- 1
src/Routes/Main.php Vedi 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']]);



Caricamento…
Annulla
Salva