Lint
This commit is contained in:
parent
ee02b8df3a
commit
92997aa78f
|
@ -52,6 +52,9 @@ class Participant extends Model implements Preventable
|
|||
return $filter->apply($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<Member, self>
|
||||
*/
|
||||
public function member(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Member::class);
|
||||
|
|
|
@ -351,7 +351,7 @@ class Member extends Model implements Geolocatable
|
|||
return [];
|
||||
}
|
||||
|
||||
/** @var array<int, Prevention */
|
||||
/** @var array<int, Prevention> */
|
||||
$preventions = [];
|
||||
|
||||
if ($this->efz === null || $this->efz->diffInYears($date) >= 5) {
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace App\Prevention\Mails;
|
|||
use App\Invoice\InvoiceSettings;
|
||||
use App\Prevention\Contracts\Preventable;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Attachment;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Mail\Mailables\Content;
|
||||
use Illuminate\Mail\Mailables\Envelope;
|
||||
|
@ -53,9 +54,9 @@ class PreventionRememberMail extends Mailable
|
|||
/**
|
||||
* Get the attachments for the message.
|
||||
*
|
||||
* @return array
|
||||
* @return array<int, Attachment>
|
||||
*/
|
||||
public function attachments()
|
||||
public function attachments(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ class PreventionTest extends TestCase
|
|||
$this->assertNull($participant->fresh()->last_remembered_at);
|
||||
}
|
||||
|
||||
private function attributes(): Generator
|
||||
protected function attributes(): Generator
|
||||
{
|
||||
yield [
|
||||
'attrs' => ['efz' => null, 'ps_at' => now()],
|
||||
|
@ -136,6 +136,7 @@ class PreventionTest extends TestCase
|
|||
|
||||
/**
|
||||
* @param array<int, Prevention> $preventions
|
||||
* @param array<string, mixed> $memberAttributes
|
||||
* @dataProvider attributes
|
||||
*/
|
||||
public function testItRemembersMember(array $memberAttributes, array $preventions): void
|
||||
|
|
Loading…
Reference in New Issue