@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 | /**  | 
                                                        
| 62 | 62 | * Get Users  | 
                                                        
| 63 | 63 | *  | 
                                                        
| 64 | - * @return AppBundle\Entity\Staff\User  | 
                                                        |
| 64 | + * @return User[]  | 
                                                        |
| 65 | 65 | */  | 
                                                        
| 66 | 66 | public function getUsers()  | 
                                                        
| 67 | 67 |      { | 
                                                        
@@ -47,16 +47,16 @@  | 
                                                    ||
| 47 | 47 |          if ($ctEntity > 0 && $request->getMethod() == 'GET') { | 
                                                        
| 48 | 48 | $message = 'gestock.install.st'.$number.'.yet_exist';  | 
                                                        
| 49 | 49 | }  | 
                                                        
| 50 | -        $form = $this->createForm($typePath, $entityNew, ['action' => $this->generateUrl('gs_install_st'.$number),]); | 
                                                        |
| 50 | +        $form = $this->createForm($typePath, $entityNew, ['action' => $this->generateUrl('gs_install_st'.$number), ]); | 
                                                        |
| 51 | 51 |          if ($entityName === 'Staff\Group') { | 
                                                        
| 52 | 52 | $this->addRolesAction($form, $entityNew);  | 
                                                        
| 53 | 53 | }  | 
                                                        
| 54 | 54 |          if (is_int($number)) { | 
                                                        
| 55 | - $return = ['message' => $message, 'form' => $form->createView(),];  | 
                                                        |
| 55 | + $return = ['message' => $message, 'form' => $form->createView(), ];  | 
                                                        |
| 56 | 56 |          } else { | 
                                                        
| 57 | 57 | $return = ['message' => $message,  | 
                                                        
| 58 | 58 | $this->nameToVariable($entityName) => $entityNew,  | 
                                                        
| 59 | - 'form' => $form->createView(),];  | 
                                                        |
| 59 | + 'form' => $form->createView(), ];  | 
                                                        |
| 60 | 60 | }  | 
                                                        
| 61 | 61 | |
| 62 | 62 |          if ($form->handleRequest($request)->isValid()) { | 
                                                        
@@ -36,20 +36,20 @@  | 
                                                    ||
| 36 | 36 | public function buildForm(FormBuilderInterface $builder, array $options)  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | 38 | $builder  | 
                                                        
| 39 | -            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name',]) | 
                                                        |
| 40 | -            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status',]) | 
                                                        |
| 41 | -            ->add('address', TextType::class, ['label' => 'gestock.address',]) | 
                                                        |
| 42 | -            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode',]) | 
                                                        |
| 39 | +            ->add('name', TextType::class, ['label' => 'gestock.settings.company.name', ]) | 
                                                        |
| 40 | +            ->add('status', TextType::class, ['label' => 'gestock.settings.company.status', ]) | 
                                                        |
| 41 | +            ->add('address', TextType::class, ['label' => 'gestock.address', ]) | 
                                                        |
| 42 | +            ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode', ]) | 
                                                        |
| 43 | 43 |              ->add('town', TextType::class, ['label' => 'gestock.town', 'attr' => [ | 
                                                        
| 44 | 44 | 'onBlur' => 'this.value=this.value.toUpperCase();',  | 
                                                        
| 45 | 45 | 'onFocus' => 'this.value=this.value.toUpperCase();',  | 
                                                        
| 46 | - 'onKeyup' => 'this.value=this.value.toUpperCase();',]])  | 
                                                        |
| 46 | + 'onKeyup' => 'this.value=this.value.toUpperCase();', ]])  | 
                                                        |
| 47 | 47 |              ->add('phone', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, | 
                                                        
| 48 | - 'label' => 'gestock.phone',])  | 
                                                        |
| 48 | + 'label' => 'gestock.phone', ])  | 
                                                        |
| 49 | 49 |              ->add('fax', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, | 
                                                        
| 50 | - 'label' => 'gestock.fax',])  | 
                                                        |
| 51 | -            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail',]) | 
                                                        |
| 52 | -            ->add('contact', TextType::class, ['label' => 'gestock.contact',]) | 
                                                        |
| 50 | + 'label' => 'gestock.fax', ])  | 
                                                        |
| 51 | +            ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail', ]) | 
                                                        |
| 52 | +            ->add('contact', TextType::class, ['label' => 'gestock.contact', ]) | 
                                                        |
| 53 | 53 |              ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, | 
                                                        
| 54 | 54 | 'label' => 'gestock.gsm']);  | 
                                                        
| 55 | 55 | }  |