Yohann76/BileMo_B2B_API

View on GitHub
src/Controller/SecurityController.php

Summary

Maintainability
A
35 mins
Test Coverage

Method register has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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();
Severity: Minor
Found in src/Controller/SecurityController.php - About 1 hr to fix

    Method register has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function register(Request $request, UserPasswordEncoderInterface $passwordEncoder, EntityManagerInterface $entityManager, SerializerInterface $serializer, ValidatorInterface $validator)
    Severity: Minor
    Found in src/Controller/SecurityController.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status