mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -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\ThirdPartyBundle\DataFixtures\ORM;
|
||||
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdPartyProfession;
|
||||
@@ -8,9 +15,7 @@ use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface;
|
||||
use Doctrine\Persistence\ObjectManager;
|
||||
|
||||
/**
|
||||
* Class LoadThirdPartyProfession
|
||||
* @package Chill\ThirdPartyBundle\DataFixtures\ORM
|
||||
* @author Mathieu Jaumotte mathieu.jaumotte@champs-libres.coop
|
||||
* Class LoadThirdPartyProfession.
|
||||
*/
|
||||
class LoadThirdPartyProfession extends Fixture implements FixtureGroupInterface
|
||||
{
|
||||
@@ -22,17 +27,17 @@ class LoadThirdPartyProfession extends Fixture implements FixtureGroupInterface
|
||||
public function load(ObjectManager $manager)
|
||||
{
|
||||
$professions = [
|
||||
['name' => ['fr' => "Directeur" ]],
|
||||
['name' => ['fr' => "Docteur" ]],
|
||||
['name' => ['fr' => "Médecin" ]],
|
||||
['name' => ['fr' => "Opérateur" ]],
|
||||
['name' => ['fr' => "Personnel administratif" ]],
|
||||
['name' => ['fr' => "Président" ]],
|
||||
['name' => ['fr' => "Responsable infirmier.ère" ]],
|
||||
['name' => ['fr' => 'Directeur']],
|
||||
['name' => ['fr' => 'Docteur']],
|
||||
['name' => ['fr' => 'Médecin']],
|
||||
['name' => ['fr' => 'Opérateur']],
|
||||
['name' => ['fr' => 'Personnel administratif']],
|
||||
['name' => ['fr' => 'Président']],
|
||||
['name' => ['fr' => 'Responsable infirmier.ère']],
|
||||
];
|
||||
|
||||
foreach ( $professions as $val) {
|
||||
print "Creating thirdparty professions : " . $val['name']['fr'] . "\n";
|
||||
foreach ($professions as $val) {
|
||||
echo 'Creating thirdparty professions : ' . $val['name']['fr'] . "\n";
|
||||
$profession = (new ThirdPartyProfession())
|
||||
->setName($val['name'])
|
||||
->setActive(true);
|
||||
|
Reference in New Issue
Block a user