@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | $resolver->setDefaults( |
16 | 16 | ['class' => FamilyLog::class, |
17 | - 'query_builder' => function (EntityRepository $er) { |
|
17 | + 'query_builder' => function(EntityRepository $er) { |
|
18 | 18 | return $er->createQueryBuilder('f') |
19 | 19 | ->orderBy('f.path', 'ASC'); |
20 | 20 | }] |
@@ -18,7 +18,7 @@ |
||
18 | 18 | public function registration(Request $request, UserPasswordEncoderInterface $encoder): Response |
19 | 19 | { |
20 | 20 | $user = new User2(); |
21 | - $form = $this->createForm(RegistrationType::class, $user, ['roles' => $this->getExistingRoles(),]); |
|
21 | + $form = $this->createForm(RegistrationType::class, $user, ['roles' => $this->getExistingRoles(), ]); |
|
22 | 22 | |
23 | 23 | $form->handleRequest($request); |
24 | 24 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | // transform the role hierarchy in a single unique list |
17 | 17 | $roles = array(); |
18 | - array_walk_recursive($hierarchy, static function ($role) use (&$roles) { |
|
18 | + array_walk_recursive($hierarchy, static function($role) use (&$roles) { |
|
19 | 19 | $roles[$role] = $role; |
20 | 20 | }); |
21 | 21 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | public function getName(): string |
47 | 47 | { |
48 | - return (number_format($this->getRate() * 100, 1)) . ' %'; |
|
48 | + return (number_format($this->getRate() * 100, 1)).' %'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public function __toString(): string |
@@ -157,12 +157,12 @@ |
||
157 | 157 | $return = ''; |
158 | 158 | if ($this->parent !== null) { |
159 | 159 | if ($this->level === 2) { |
160 | - $return = '|-- ' . $this->name; |
|
160 | + $return = '|-- '.$this->name; |
|
161 | 161 | } elseif ($this->level === 3) { |
162 | - $return = '|-- |-- ' . $this->name; |
|
162 | + $return = '|-- |-- '.$this->name; |
|
163 | 163 | } |
164 | 164 | } else { |
165 | - $return = '| ' . $this->name; |
|
165 | + $return = '| '.$this->name; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | return $return; |
@@ -161,9 +161,9 @@ |
||
161 | 161 | $this->zoneStorages = new ArrayCollection(); |
162 | 162 | $this->active = true; |
163 | 163 | $this->quantity = 0.000; |
164 | - $this->createAt = new \DateTimeImmutable() ; |
|
165 | - $this->updateAt = new \DateTimeImmutable() ; |
|
166 | - $this->deleteAt = new \DateTimeImmutable('3000-12-31') ; |
|
164 | + $this->createAt = new \DateTimeImmutable(); |
|
165 | + $this->updateAt = new \DateTimeImmutable(); |
|
166 | + $this->deleteAt = new \DateTimeImmutable('3000-12-31'); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | public function getId(): int |
@@ -196,6 +196,6 @@ |
||
196 | 196 | |
197 | 197 | public function getCompleteAddress(): string |
198 | 198 | { |
199 | - return $this->address . '<br>' . $this->zipcode . ' ' . $this->town; |
|
199 | + return $this->address.'<br>'.$this->zipcode.' '.$this->town; |
|
200 | 200 | } |
201 | 201 | } |