@@ -70,7 +70,7 @@ |
||
70 | 70 | { |
71 | 71 | $resolver->setDefaults(array( |
72 | 72 | 'data_class' => 'Application\Entity\UserEntity', |
73 | - 'validation_groups' => function (FormInterface $form) { |
|
73 | + 'validation_groups' => function(FormInterface $form) { |
|
74 | 74 | $user = $form->getData(); |
75 | 75 | $validationGroups = array(); |
76 | 76 |
@@ -215,7 +215,7 @@ |
||
215 | 215 | $total = $paginationData['totalCount']; |
216 | 216 | |
217 | 217 | if ($total > 0 && $currentPage <= $pageCount) { |
218 | - $from = (($currentPage -1) * $paginationData['numItemsPerPage']) + 1; |
|
218 | + $from = (($currentPage - 1) * $paginationData['numItemsPerPage']) + 1; |
|
219 | 219 | $to = $currentPage * $paginationData['numItemsPerPage'] > $total |
220 | 220 | ? $total |
221 | 221 | : $currentPage * $paginationData['numItemsPerPage'] |
@@ -680,7 +680,7 @@ |
||
680 | 680 | |
681 | 681 | /*** Roles ***/ |
682 | 682 | /** |
683 | - * @return array |
|
683 | + * @return string[] |
|
684 | 684 | */ |
685 | 685 | public function getRoles() |
686 | 686 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Application\Form\Type\User; |
4 | 4 | |
5 | 5 | use Symfony\Component\Form\AbstractType; |
6 | -use Symfony\Component\Form\FormInterface; |
|
7 | 6 | use Symfony\Component\Form\FormBuilderInterface; |
8 | 7 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
9 | 8 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | 'data_class' => 'Application\Entity\UserEntity', |
50 | 50 | 'csrf_protection' => true, |
51 | 51 | 'csrf_field_name' => 'csrf_token', |
52 | - 'validation_groups' => function ($action) { |
|
52 | + 'validation_groups' => function($action) { |
|
53 | 53 | if ($action == 'reset') { |
54 | 54 | return array('resetPasswordReset'); |
55 | 55 | } else { |