Skip to content

Commit 09d0c4a

Browse files
author
Marc Geurts
committed
Pint
1 parent 6f0fe5b commit 09d0c4a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/Gedcom/Import/IndividualImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ private function truncatePersonData(array $personData): array
450450

451451
foreach ($limits as $field => $limit) {
452452
if (! empty($personData[$field]) && mb_strlen($personData[$field]) > $limit) {
453-
$originalLength = mb_strlen($personData[$field]);
453+
$originalLength = mb_strlen($personData[$field]);
454454
$personData[$field] = mb_substr($personData[$field], 0, $limit);
455455

456456
Log::debug("GEDCOM Import: Truncated {$field}", [

resources/views/components/livewire/people/⚡partners/partners.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public function confirm(int $id, string $name): void
4949
*/
5050
public function delete(array $couple): void
5151
{
52-
$couple = Couple::where(function ($q) use ($couple): void {
52+
$couple = Couple::where(function ($q): void {
5353
$q->where('person1_id', $this->person->id)
54-
->orWhere('person2_id', $this->person->id);
54+
->orWhere('person2_id', $this->person->id);
5555
})->findOrFail($couple['id']);
5656

5757
$couple->delete();

tests/Feature/Jetstream/TransferTeamownershipTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ function makeNonPersonalTeam(User $owner): Team
7676
});
7777

7878
test('unrelated authenticated user cannot transfer ownership of another team', function (): void {
79-
$owner = User::factory()->withPersonalTeam()->create();
80-
$attacker = User::factory()->withPersonalTeam()->create();
81-
$team = makeNonPersonalTeam($owner);
79+
$owner = User::factory()->withPersonalTeam()->create();
80+
$attacker = User::factory()->withPersonalTeam()->create();
81+
$team = makeNonPersonalTeam($owner);
8282

8383
// Attacker has no relationship to this team at all
8484
$this->actingAs($attacker)

0 commit comments

Comments
 (0)