cs: Fix code style (safe rules only).

This commit is contained in:
Pol Dellaiera
2021-11-23 14:06:38 +01:00
parent 149d7ce991
commit 8f96a1121d
1223 changed files with 65199 additions and 64625 deletions

View File

@@ -1,5 +1,12 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\CalendarBundle\DataFixtures\ORM;
use Chill\CalendarBundle\Entity\CancelReason;
@@ -7,20 +14,19 @@ use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface;
use Doctrine\Persistence\ObjectManager;
class LoadCancelReason extends Fixture implements FixtureGroupInterface
{
public function getOrder(): int
{
return 40001;
}
public static $references = [];
public static function getGroups(): array
{
return ['calendar'];
}
public static $references = [];
public function getOrder(): int
{
return 40001;
}
public function load(ObjectManager $manager): void
{
@@ -31,12 +37,12 @@ class LoadCancelReason extends Fixture implements FixtureGroupInterface
];
foreach ($arr as $a) {
print "Creating calendar cancel reason : " . $a['name'] . "\n";
$cancelReason= (new CancelReason())
echo 'Creating calendar cancel reason : ' . $a['name'] . "\n";
$cancelReason = (new CancelReason())
->setCanceledBy($a['name'])
->setActive(true);
$manager->persist($cancelReason);
$reference = 'CancelReason_'.$a['name'];
$reference = 'CancelReason_' . $a['name'];
$this->addReference($reference, $cancelReason);
static::$references[] = $reference;
}