apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -18,7 +18,6 @@ use Chill\MainBundle\Entity\Location;
use Chill\MainBundle\Entity\LocationType;
use Chill\MainBundle\Entity\PostalCode;
use Chill\MainBundle\Repository\UserRepository;
use DateTimeImmutable;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
@@ -63,7 +62,7 @@ class LoadCalendarRange extends Fixture implements FixtureGroupInterface, Ordere
$manager->persist($type);
$manager->persist($location);
$now = new DateTimeImmutable();
$now = new \DateTimeImmutable();
$days = [
'2021-08-23',
@@ -74,8 +73,8 @@ class LoadCalendarRange extends Fixture implements FixtureGroupInterface, Ordere
'2021-08-31',
'2021-09-01',
'2021-09-02',
(new DateTimeImmutable('tomorrow'))->format('Y-m-d'),
(new DateTimeImmutable('today'))->format('Y-m-d'),
(new \DateTimeImmutable('tomorrow'))->format('Y-m-d'),
(new \DateTimeImmutable('today'))->format('Y-m-d'),
$now->add(new \DateInterval('P7D'))->format('Y-m-d'),
$now->add(new \DateInterval('P8D'))->format('Y-m-d'),
$now->add(new \DateInterval('P9D'))->format('Y-m-d'),
@@ -92,9 +91,9 @@ class LoadCalendarRange extends Fixture implements FixtureGroupInterface, Ordere
foreach ($users as $u) {
foreach ($days as $d) {
foreach ($hours as $h) {
$event = $d . ' ' . $h;
$startEvent = new DateTimeImmutable($event);
$endEvent = new DateTimeImmutable($event . ' + 1 hours');
$event = $d.' '.$h;
$startEvent = new \DateTimeImmutable($event);
$endEvent = new \DateTimeImmutable($event.' + 1 hours');
$calendarRange = (new CalendarRange())
->setUser($u)
->setStartDate($startEvent)