@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $this->getDoctrine()->getManager()->flush(); |
| 121 | 121 | $this->addFlash('success', $this->get('translator')->trans('alert.deleted', [], 'department')); |
| 122 | 122 | } |
| 123 | - catch(\Exception $e) { |
|
| 123 | + catch (\Exception $e) { |
|
| 124 | 124 | $this->addFlash('error', $this->get('translator')->trans('alert.not_deleted', [], 'department')); |
| 125 | 125 | } |
| 126 | 126 | return $this->redirectToRoute('admin_departments'); |
@@ -119,8 +119,7 @@ |
||
| 119 | 119 | try { |
| 120 | 120 | $this->getDoctrine()->getManager()->flush(); |
| 121 | 121 | $this->addFlash('success', $this->get('translator')->trans('alert.deleted', [], 'department')); |
| 122 | - } |
|
| 123 | - catch(\Exception $e) { |
|
| 122 | + } catch(\Exception $e) { |
|
| 124 | 123 | $this->addFlash('error', $this->get('translator')->trans('alert.not_deleted', [], 'department')); |
| 125 | 124 | } |
| 126 | 125 | return $this->redirectToRoute('admin_departments'); |
@@ -24,14 +24,8 @@ |
||
| 24 | 24 | use Symfony\Component\Form\AbstractType; |
| 25 | 25 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
| 26 | 26 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
| 27 | -use Symfony\Component\Form\Extension\Core\Type\PasswordType; |
|
| 28 | -use Symfony\Component\Form\Extension\Core\Type\RepeatedType; |
|
| 29 | -use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
|
| 30 | 27 | use Symfony\Component\Form\FormBuilderInterface; |
| 31 | 28 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 32 | -use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
|
| 33 | -use Symfony\Component\Validator\Constraints\Length; |
|
| 34 | -use Symfony\Component\Validator\Constraints\NotBlank; |
|
| 35 | 29 | |
| 36 | 30 | class PersonType extends AbstractType |
| 37 | 31 | { |