Completed
Push — master ( 65e702...b46fcb )
by Ashley
02:06
created
src/Validation/DoormanValidator.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,16 @@
 block discarded – undo
31 31
 
32 32
     protected function getParameterName($parameters, Validator $validator)
33 33
     {
34
-        if (isset($parameters[ 0 ])) return $parameters[ 0 ];
34
+        if (isset($parameters[ 0 ])) {
35
+            return $parameters[ 0 ];
36
+        }
35 37
 
36 38
         $possibles = [ 'email', 'email_address' ];
37 39
 
38 40
         foreach ($possibles as $possible) {
39
-            if (isset($validator->getData()[ $possible ])) return $possible;
41
+            if (isset($validator->getData()[ $possible ])) {
42
+                return $possible;
43
+            }
40 44
         }
41 45
     }
42 46
 
Please login to merge, or discard this patch.