From 0ca2838ae2d2950388d58f4e1a9634d88c99e8f5 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Fri, 23 Nov 2018 19:29:49 +0100 Subject: [PATCH] Formated code --- application/src/DataFixtures/DummyFixtures.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/src/DataFixtures/DummyFixtures.php b/application/src/DataFixtures/DummyFixtures.php index 2026344..47b4f66 100644 --- a/application/src/DataFixtures/DummyFixtures.php +++ b/application/src/DataFixtures/DummyFixtures.php @@ -5,7 +5,6 @@ namespace App\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use App\Entity\User; -use FOS\UserBundle\Util\PasswordUpdater; use FOS\UserBundle\Doctrine\UserManager; /** @@ -20,18 +19,19 @@ class DummyFixtures extends Fixture $this->addTestUser(); $manager->flush(); } - - protected function addTestUser():void{ + + protected function addTestUser(): void + { /** - * @var UserManager $userManager + * @var UserManager */ $userManager = $this->container->get('fos_user.user_manager'); /** - * @var User $testUser + * @var User */ $testUser = $userManager->createUser(); - $testUser->setEmail("test@test.de"); - $testUser->setUsername("test"); + $testUser->setEmail('test@test.de'); + $testUser->setUsername('test'); $testUser->setPlainPassword('test'); $testUser->setEnabled(true); $userManager->updateUser($testUser);