@@ -31,12 +31,16 @@ |
||
| 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 | |
@@ -2,8 +2,8 @@ |
||
| 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 | { |
@@ -40,6 +40,6 @@ |
||
| 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 | } |