Apply PHP CS Fixer code style fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,16 +11,16 @@ use App\Entity\Event;
|
|||||||
use App\Entity\OrganizerInvitation;
|
use App\Entity\OrganizerInvitation;
|
||||||
use App\Entity\User;
|
use App\Entity\User;
|
||||||
use App\Service\AuditService;
|
use App\Service\AuditService;
|
||||||
use App\Service\EventIndexService;
|
|
||||||
use App\Service\BilletOrderService;
|
use App\Service\BilletOrderService;
|
||||||
|
use App\Service\EventIndexService;
|
||||||
use App\Service\ExportService;
|
use App\Service\ExportService;
|
||||||
use App\Service\MailerService;
|
use App\Service\MailerService;
|
||||||
use App\Service\MeilisearchService;
|
use App\Service\MeilisearchService;
|
||||||
use App\Service\SiretService;
|
use App\Service\SiretService;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
|
||||||
use Knp\Component\Pager\PaginatorInterface;
|
use Knp\Component\Pager\PaginatorInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||||
@@ -63,7 +63,7 @@ class AdminController extends AbstractController
|
|||||||
->setParameter('paid', BilletBuyer::STATUS_PAID)
|
->setParameter('paid', BilletBuyer::STATUS_PAID)
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getSingleScalarResult();
|
->getSingleScalarResult();
|
||||||
$nbBillets = $em->getRepository(\App\Entity\BilletOrder::class)->count([]);
|
$nbBillets = $em->getRepository(BilletOrder::class)->count([]);
|
||||||
|
|
||||||
$commissionEticket = 0;
|
$commissionEticket = 0;
|
||||||
$commissionStripe = 0;
|
$commissionStripe = 0;
|
||||||
@@ -776,8 +776,8 @@ class AdminController extends AbstractController
|
|||||||
->where('e.createdAt >= :since')
|
->where('e.createdAt >= :since')
|
||||||
->andWhere('e.referrer IS NOT NULL')
|
->andWhere('e.referrer IS NOT NULL')
|
||||||
->andWhere("e.referrer != ''")
|
->andWhere("e.referrer != ''")
|
||||||
->andWhere("e.referrer NOT LIKE :self1")
|
->andWhere('e.referrer NOT LIKE :self1')
|
||||||
->andWhere("e.referrer NOT LIKE :self2")
|
->andWhere('e.referrer NOT LIKE :self2')
|
||||||
->setParameter('self1', '%ticket.e-cosplay.fr%')
|
->setParameter('self1', '%ticket.e-cosplay.fr%')
|
||||||
->setParameter('self2', '%esyweb.local%')
|
->setParameter('self2', '%esyweb.local%')
|
||||||
->setParameter('since', $since)
|
->setParameter('since', $since)
|
||||||
@@ -834,8 +834,12 @@ class AdminController extends AbstractController
|
|||||||
|
|
||||||
// Merge into aligned arrays
|
// Merge into aligned arrays
|
||||||
$allDays = [];
|
$allDays = [];
|
||||||
foreach ($visitorsPerDay as $r) { $allDays[$r['day']] = true; }
|
foreach ($visitorsPerDay as $r) {
|
||||||
foreach ($pageviewsPerDay as $r) { $allDays[$r['day']] = true; }
|
$allDays[$r['day']] = true;
|
||||||
|
}
|
||||||
|
foreach ($pageviewsPerDay as $r) {
|
||||||
|
$allDays[$r['day']] = true;
|
||||||
|
}
|
||||||
ksort($allDays);
|
ksort($allDays);
|
||||||
|
|
||||||
$visitorsMap = [];
|
$visitorsMap = [];
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ use App\Message\AnalyticsMessage;
|
|||||||
use App\Service\AnalyticsCryptoService;
|
use App\Service\AnalyticsCryptoService;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Messenger\MessageBusInterface;
|
use Symfony\Component\Messenger\MessageBusInterface;
|
||||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
|
|
||||||
class AnalyticsController extends AbstractController
|
class AnalyticsController extends AbstractController
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
|
|||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
|
||||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||||
|
|
||||||
#[Route('/api/auth')]
|
#[Route('/api/auth')]
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class InfraService
|
|||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
foreach ($containers as $c) {
|
foreach ($containers as $c) {
|
||||||
$name = ltrim(($c['Names'][0] ?? '?'), '/');
|
$name = ltrim($c['Names'][0] ?? '?', '/');
|
||||||
$stats = $this->dockerApi('/containers/'.($c['Id'] ?? '').'/stats?stream=false');
|
$stats = $this->dockerApi('/containers/'.($c['Id'] ?? '').'/stats?stream=false');
|
||||||
|
|
||||||
$cpu = $this->calcCpuPercent($stats);
|
$cpu = $this->calcCpuPercent($stats);
|
||||||
|
|||||||
Reference in New Issue
Block a user