Completed
Push — master ( 7bedbb...6c3901 )
by Ashley
01:53
created
src/Validation/DoormanValidator.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 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 ])) return $parameters[ 0 ];
37 37
 
38
-        $possibles = ['email', 'email_address'];
38
+        $possibles = [ 'email', 'email_address' ];
39 39
 
40 40
         foreach ($possibles as $possible) {
41
-            if(isset($validator->getData()[$possible])) return $possible;
41
+            if (isset($validator->getData()[ $possible ])) return $possible;
42 42
         }
43 43
     }
44 44
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $field = $this->getParameterName($parameters, $validator);
48 48
 
49
-        if($field) {
50
-            return $validator->getData()[$field];
49
+        if ($field) {
50
+            return $validator->getData()[ $field ];
51 51
         }
52 52
     }
53 53
 }
Please login to merge, or discard this 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
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     protected $dates = [ 'valid_until' ];
10 10
     
11
-    public function __construct(array $attributes = [])
11
+    public function __construct(array $attributes = [ ])
12 12
     {
13 13
         $this->table = config('doorman.invite_table_name');
14 14
         parent::__construct($attributes);
Please login to merge, or discard this patch.