src/Controller/SecurityController.php
Method register
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function register(Request $request, UserPasswordEncoderInterface $passwordEncoder, EntityManagerInterface $entityManager, SerializerInterface $serializer, ValidatorInterface $validator)
{
$values = json_decode($request->getContent());
if(isset($values->username,$values->password)) {
$customer = new Customer();
Method register
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function register(Request $request, UserPasswordEncoderInterface $passwordEncoder, EntityManagerInterface $entityManager, SerializerInterface $serializer, ValidatorInterface $validator)