Completed
Pull Request — dev (#8)
by
unknown
02:50
created
src/AppBundle/Controller/Api/DefaultController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     {
21 21
         $user = $this->getDoctrine()->getRepository('AppBundle:UserIntern')
22 22
             ->findOneBy(['userName' => $request->get('login')]);
23
-        if (!$user){
23
+        if (!$user) {
24 24
             return new JsonResponse(['message' => 'Bad credentials'], 403);
25 25
         }
26 26
         $result = $this->get('security.encoder_factory')
27 27
             ->getEncoder($user)
28 28
             ->isPasswordValid($user->getPassword(), $request->get('password'), null);
29
-        if (!$result){
29
+        if (!$result) {
30 30
             return new JsonResponse(['message' => 'Bad credentials'], 403);
31 31
         }
32 32
 
Please login to merge, or discard this patch.