@@ -158,8 +158,7 @@ |
||
| 158 | 158 | $translator->trans('app.messages.success.changedEnroller') |
| 159 | 159 | ); |
| 160 | 160 | return $this->redirectToRoute('sylius_admin_customer_show', ['id' => $id]); |
| 161 | - } |
|
| 162 | - else { |
|
| 161 | + } else { |
|
| 163 | 162 | throw new InvalidArgumentException("Invalid request. Can't choose customer as his own enroller"); |
| 164 | 163 | } |
| 165 | 164 | } |