diff --git a/README.md b/README.md
index 25ff9a1..92fdbdf 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,4 @@ This Project allows you to use email instead of user name to login via REST
 Enable the module as usual
 use this route for REST email login : /user/email-login?_format=json
 pass the credentials in this format :
-{"mail":"user@mail.com","pass":"passwordhere"}
\ No newline at end of file
+{"mail":"user@mail.com","pass":"passwordhere"}
diff --git a/src/Controller/RestMailLoginController.php b/src/Controller/RestMailLoginController.php
index 38d98c0..6836a6e 100644
--- a/src/Controller/RestMailLoginController.php
+++ b/src/Controller/RestMailLoginController.php
@@ -1,5 +1,7 @@
 <?php
+
 namespace Drupal\rest_mail_login\Controller;
+
 use Drupal\user\Controller\UserAuthenticationController;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
@@ -26,12 +28,12 @@ class RestMailLoginController extends UserAuthenticationController {
       throw new BadRequestHttpException('Missing credentials.mail.');
     }
     $user = user_load_by_mail($credentials['mail']);
-    if(!$user){
+    if (!$user) {
       throw new BadRequestHttpException('Invalid credentials.mail.');
     }
     unset($credentials['mail']);
     $credentials['name'] = $user->getAccountName();
-    $serialized = $this->serializer->encode($credentials,$format);
+    $serialized = $this->serializer->encode($credentials, $format);
     $newRequest = Request::create(
       $request->getRequestUri(),
       $request->getMethod(),
@@ -45,4 +47,5 @@ class RestMailLoginController extends UserAuthenticationController {
     $response = parent::login($newRequest);
     return $response;
   }
+
 }
