Apply PHP CS Fixer code style fixes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-26 16:19:15 +01:00
parent 4caff2e032
commit 58e139e261
4 changed files with 13 additions and 10 deletions

View File

@@ -11,16 +11,16 @@ use App\Entity\Event;
use App\Entity\OrganizerInvitation;
use App\Entity\User;
use App\Service\AuditService;
use App\Service\EventIndexService;
use App\Service\BilletOrderService;
use App\Service\EventIndexService;
use App\Service\ExportService;
use App\Service\MailerService;
use App\Service\MeilisearchService;
use App\Service\SiretService;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Knp\Component\Pager\PaginatorInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
@@ -63,7 +63,7 @@ class AdminController extends AbstractController
->setParameter('paid', BilletBuyer::STATUS_PAID)
->getQuery()
->getSingleScalarResult();
$nbBillets = $em->getRepository(\App\Entity\BilletOrder::class)->count([]);
$nbBillets = $em->getRepository(BilletOrder::class)->count([]);
$commissionEticket = 0;
$commissionStripe = 0;
@@ -776,8 +776,8 @@ class AdminController extends AbstractController
->where('e.createdAt >= :since')
->andWhere('e.referrer IS NOT NULL')
->andWhere("e.referrer != ''")
->andWhere("e.referrer NOT LIKE :self1")
->andWhere("e.referrer NOT LIKE :self2")
->andWhere('e.referrer NOT LIKE :self1')
->andWhere('e.referrer NOT LIKE :self2')
->setParameter('self1', '%ticket.e-cosplay.fr%')
->setParameter('self2', '%esyweb.local%')
->setParameter('since', $since)
@@ -834,8 +834,12 @@ class AdminController extends AbstractController
// Merge into aligned arrays
$allDays = [];
foreach ($visitorsPerDay as $r) { $allDays[$r['day']] = true; }
foreach ($pageviewsPerDay as $r) { $allDays[$r['day']] = true; }
foreach ($visitorsPerDay as $r) {
$allDays[$r['day']] = true;
}
foreach ($pageviewsPerDay as $r) {
$allDays[$r['day']] = true;
}
ksort($allDays);
$visitorsMap = [];

View File

@@ -7,11 +7,11 @@ use App\Message\AnalyticsMessage;
use App\Service\AnalyticsCryptoService;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\Routing\Attribute\Route;
class AnalyticsController extends AbstractController

View File

@@ -12,7 +12,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
#[Route('/api/auth')]

View File

@@ -201,7 +201,7 @@ class InfraService
$result = [];
foreach ($containers as $c) {
$name = ltrim(($c['Names'][0] ?? '?'), '/');
$name = ltrim($c['Names'][0] ?? '?', '/');
$stats = $this->dockerApi('/containers/'.($c['Id'] ?? '').'/stats?stream=false');
$cpu = $this->calcCpuPercent($stats);