Fix PHP CS Fixer: remove spaces around string concatenation operator
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -232,7 +232,7 @@ class AccountController extends AbstractController
|
||||
'breadcrumbs' => [
|
||||
['name' => 'Accueil', 'url' => '/'],
|
||||
['name' => 'Mon compte', 'url' => '/mon-compte'],
|
||||
['name' => 'Sous-compte', 'url' => '/mon-compte/sous-compte/' . $subAccount->getId()],
|
||||
['name' => 'Sous-compte', 'url' => '/mon-compte/sous-compte/'.$subAccount->getId()],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class AttestationController extends AbstractController
|
||||
|
||||
$breadcrumbs = [
|
||||
['name' => 'Accueil', 'url' => '/'],
|
||||
['name' => 'Verification attestation', 'url' => '/attestation/check/' . $stripePayoutId],
|
||||
['name' => 'Verification attestation', 'url' => '/attestation/check/'.$stripePayoutId],
|
||||
];
|
||||
|
||||
if (!$payout) {
|
||||
|
||||
@@ -64,7 +64,7 @@ class HomeController extends AbstractController
|
||||
'breadcrumbs' => [
|
||||
['name' => 'Accueil', 'url' => '/'],
|
||||
['name' => 'Organisateurs', 'url' => '/organisateurs'],
|
||||
['name' => $organizer->getCompanyName() ?? $organizer->getFirstName() . ' ' . $organizer->getLastName(), 'url' => '/organisateur/' . $organizer->getId() . '-' . $organizer->getSlug()],
|
||||
['name' => $organizer->getCompanyName() ?? $organizer->getFirstName().' '.$organizer->getLastName(), 'url' => '/organisateur/'.$organizer->getId().'-'.$organizer->getSlug()],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ class RegistrationController extends AbstractController
|
||||
'isOrganizer' => \in_array('ROLE_ORGANIZER', $user->getRoles(), true),
|
||||
'breadcrumbs' => [
|
||||
['name' => 'Accueil', 'url' => '/'],
|
||||
['name' => 'Email verifie', 'url' => '/verification-email/' . $token],
|
||||
['name' => 'Email verifie', 'url' => '/verification-email/'.$token],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class SitemapController extends AbstractController
|
||||
'changefreq' => 'weekly',
|
||||
'priority' => '0.8',
|
||||
'images' => [[
|
||||
'loc' => $baseUrl . '/logo.png',
|
||||
'loc' => $baseUrl.'/logo.png',
|
||||
'title' => 'E-Ticket - Nos organisateurs',
|
||||
]],
|
||||
],
|
||||
@@ -141,8 +141,8 @@ class SitemapController extends AbstractController
|
||||
|
||||
if ($organizer->getLogoName()) {
|
||||
$url['images'] = [[
|
||||
'loc' => $baseUrl . '/uploads/logos/' . $organizer->getLogoName(),
|
||||
'title' => $organizer->getCompanyName() ?? $organizer->getFirstName() . ' ' . $organizer->getLastName(),
|
||||
'loc' => $baseUrl.'/uploads/logos/' . $organizer->getLogoName(),
|
||||
'title' => $organizer->getCompanyName() ?? $organizer->getFirstName().' '.$organizer->getLastName(),
|
||||
]];
|
||||
}
|
||||
|
||||
|
||||
@@ -577,7 +577,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||
|
||||
public function getSlug(): string
|
||||
{
|
||||
$name = $this->companyName ?? $this->firstName . ' ' . $this->lastName;
|
||||
$name = $this->companyName ?? $this->firstName.' '.$this->lastName;
|
||||
$slug = mb_strtolower(trim($name));
|
||||
$slug = transliterator_transliterate('Any-Latin; Latin-ASCII', $slug) ?: $slug;
|
||||
$slug = (string) preg_replace('/[^a-z0-9]+/', '-', $slug);
|
||||
|
||||
@@ -64,7 +64,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em->flush();
|
||||
}
|
||||
|
||||
$client->request('GET', '/organisateur/' . $organizer->getId() . '-' . $organizer->getSlug());
|
||||
$client->request('GET', '/organisateur/'.$organizer->getId().'-'.$organizer->getSlug());
|
||||
self::assertResponseIsSuccessful();
|
||||
self::assertSelectorTextContains('h1', $organizer->getCompanyName() ?? $organizer->getFirstName());
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em = static::getContainer()->get(EntityManagerInterface::class);
|
||||
|
||||
$organizer = new User();
|
||||
$organizer->setEmail('test-orga-slug-' . uniqid() . '@example.com');
|
||||
$organizer->setEmail('test-orga-slug-'.uniqid().'@example.com');
|
||||
$organizer->setFirstName('Slug');
|
||||
$organizer->setLastName('Test');
|
||||
$organizer->setPassword('hashed');
|
||||
@@ -86,8 +86,8 @@ class HomeControllerTest extends WebTestCase
|
||||
$em->persist($organizer);
|
||||
$em->flush();
|
||||
|
||||
$client->request('GET', '/organisateur/' . $organizer->getId() . '-mauvais-slug');
|
||||
self::assertResponseRedirects('/organisateur/' . $organizer->getId() . '-mon-asso', 301);
|
||||
$client->request('GET', '/organisateur/'.$organizer->getId().'-mauvais-slug');
|
||||
self::assertResponseRedirects('/organisateur/'.$organizer->getId().'-mon-asso', 301);
|
||||
}
|
||||
|
||||
public function testOrganizerDetailNotFoundReturns404(): void
|
||||
@@ -104,7 +104,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em = static::getContainer()->get(EntityManagerInterface::class);
|
||||
|
||||
$organizer = new User();
|
||||
$organizer->setEmail('test-orga-noapprove-' . uniqid() . '@example.com');
|
||||
$organizer->setEmail('test-orga-noapprove-'.uniqid().'@example.com');
|
||||
$organizer->setFirstName('Test');
|
||||
$organizer->setLastName('NonApproved');
|
||||
$organizer->setPassword('hashed');
|
||||
@@ -114,7 +114,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em->persist($organizer);
|
||||
$em->flush();
|
||||
|
||||
$client->request('GET', '/organisateur/' . $organizer->getId() . '-' . $organizer->getSlug());
|
||||
$client->request('GET', '/organisateur/'.$organizer->getId().'-'.$organizer->getSlug());
|
||||
self::assertResponseStatusCodeSame(404);
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em = static::getContainer()->get(EntityManagerInterface::class);
|
||||
|
||||
$buyer = new User();
|
||||
$buyer->setEmail('test-buyer-detail-' . uniqid() . '@example.com');
|
||||
$buyer->setEmail('test-buyer-detail-'.uniqid().'@example.com');
|
||||
$buyer->setFirstName('Buyer');
|
||||
$buyer->setLastName('Test');
|
||||
$buyer->setPassword('hashed');
|
||||
@@ -133,7 +133,7 @@ class HomeControllerTest extends WebTestCase
|
||||
$em->persist($buyer);
|
||||
$em->flush();
|
||||
|
||||
$client->request('GET', '/organisateur/' . $buyer->getId() . '-' . $buyer->getSlug());
|
||||
$client->request('GET', '/organisateur/'.$buyer->getId().'-'.$buyer->getSlug());
|
||||
self::assertResponseStatusCodeSame(404);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user