Completed
Push — master ( d71108...70e221 )
by Ashley
01:59
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.
src/Commands/CleanupCommand.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Clarkeash\Doorman\Commands;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use Clarkeash\Doorman\Models\Invite;
6
+use Illuminate\Console\Command;
7 7
 
8 8
 class CleanupCommand extends Command
9 9
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
     {
41 41
         $useless = Invite::useless()->count();
42 42
         Invite::useless()->delete();
43
-        $this->info('Successfully deleted '.$useless.' expired invites from the database.');
43
+        $this->info('Successfully deleted ' . $useless . ' expired invites from the database.');
44 44
     }
45 45
 }
Please login to merge, or discard this patch.