Completed
Push — master ( da8fd8...64e679 )
by Ashley
03:32
created
src/Validation/DoormanValidator.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,12 +33,16 @@
 block discarded – undo
33 33
 
34 34
     protected function getParameterName($parameters, Validator $validator)
35 35
     {
36
-        if(isset($parameters[0])) return $parameters[0];
36
+        if(isset($parameters[0])) {
37
+            return $parameters[0];
38
+        }
37 39
 
38 40
         $possibles = ['email', 'email_address'];
39 41
 
40 42
         foreach ($possibles as $possible) {
41
-            if(isset($validator->getData()[$possible])) return $possible;
43
+            if(isset($validator->getData()[$possible])) {
44
+                return $possible;
45
+            }
42 46
         }
43 47
     }
44 48
 
Please login to merge, or discard this patch.
src/Models/Invite.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,14 +16,18 @@
 block discarded – undo
16 16
 
17 17
     public function hasExpired()
18 18
     {
19
-        if(is_null($this->valid_until)) return false;
19
+        if(is_null($this->valid_until)) {
20
+            return false;
21
+        }
20 22
 
21 23
         return $this->valid_until->isPast();
22 24
     }
23 25
 
24 26
     public function isFull()
25 27
     {
26
-        if($this->max == 0) return false;
28
+        if($this->max == 0) {
29
+            return false;
30
+        }
27 31
 
28 32
         return $this->uses >= $this->max;
29 33
     }
Please login to merge, or discard this patch.