@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | $history = array(); |
86 | 86 | //Only load the history if we are admin. Ease the load. |
87 | - if($this->isGranted('ROLE_ADMIN')){ |
|
87 | + if ($this->isGranted('ROLE_ADMIN')) { |
|
88 | 88 | $history = $this->trickHistory->getHistory($trick->getId()); |
89 | 89 | } |
90 | 90 |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function getUsername(): string |
111 | 111 | { |
112 | - return (string)$this->userName; |
|
112 | + return (string) $this->userName; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function getPassword(): string |
138 | 138 | { |
139 | - return (string)$this->password; |
|
139 | + return (string) $this->password; |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | public function setPassword(string $password): self |
@@ -328,6 +328,6 @@ discard block |
||
328 | 328 | $this->verified, |
329 | 329 | $this->verifiedDateTime, |
330 | 330 | $this->updatedAt, |
331 | - )=unserialize($serialized, ['allowed_classes' => false]); |
|
331 | + ) = unserialize($serialized, ['allowed_classes' => false]); |
|
332 | 332 | } |
333 | 333 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | return $this; |
82 | 82 | } |
83 | 83 | |
84 | - public function __toString(){ |
|
84 | + public function __toString() { |
|
85 | 85 | return $this->Name; |
86 | 86 | } |
87 | 87 | } |
@@ -9,13 +9,13 @@ |
||
9 | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
10 | 10 | use Vich\UploaderBundle\Form\Type\VichImageType; |
11 | 11 | |
12 | -class UserProfileFormType extends AbstractType{ |
|
12 | +class UserProfileFormType extends AbstractType { |
|
13 | 13 | |
14 | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
15 | 15 | { |
16 | 16 | $builder |
17 | 17 | ->add('UserName', TextType::class) |
18 | - ->add('imageFile', VichImageType::class,[ |
|
18 | + ->add('imageFile', VichImageType::class, [ |
|
19 | 19 | 'required' => false, |
20 | 20 | 'allow_delete' => false, |
21 | 21 | 'download_uri' => false, |
@@ -11,7 +11,7 @@ |
||
11 | 11 | use Symfony\Component\Validator\Constraints\Length; |
12 | 12 | use Symfony\Component\Validator\Constraints\NotBlank; |
13 | 13 | |
14 | -class UserChangePasswordFormType extends AbstractType{ |
|
14 | +class UserChangePasswordFormType extends AbstractType { |
|
15 | 15 | |
16 | 16 | public function buildForm(FormBuilderInterface $builder, array $options) |
17 | 17 | { |