Commit 357f263 1 parent 31c1706 commit 357f263 Copy full SHA for 357f263
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function mount(): void
65
65
->map (function ($ p ) {
66
66
return [
67
67
'id ' => $ p ->id ,
68
- 'name ' => $ p ->name . ' [ ' . (($ p ->sex === 'm ' ) ? __ ('app.male ' ) : __ ('app.female ' )) . '] ( ' . $ p ->birth_formatted . ') ' ,
68
+ 'name ' => $ p ->name . ' [ ' . (($ p ->sex === 'm ' ) ? __ ('app.male ' ) : __ ('app.female ' )) . '] ' . ( $ p -> birth_formatted ? ' ( ' . $ p ->birth_formatted . ') ' : '' ) ,
69
69
];
70
70
});
71
71
}
Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ public function mount(): void
44
44
$ this ->fathers = $ persons ->where ('sex ' , 'm ' )->map (function ($ p ) {
45
45
return [
46
46
'id ' => $ p ->id ,
47
- 'name ' => $ p ->name . ' ( ' . $ p ->birth_formatted . ') ' ,
47
+ 'name ' => $ p ->name . ( $ p -> birth_formatted ? ' ( ' . $ p ->birth_formatted . ') ' : '' ) ,
48
48
];
49
49
})->values ();
50
50
51
51
$ this ->mothers = $ persons ->where ('sex ' , 'f ' )->map (function ($ p ) {
52
52
return [
53
53
'id ' => $ p ->id ,
54
- 'name ' => $ p ->name . ' ( ' . $ p ->birth_formatted . ') ' ,
54
+ 'name ' => $ p ->name . ( $ p -> birth_formatted ? ' ( ' . $ p ->birth_formatted . ') ' : '' ) ,
55
55
];
56
56
})->values ();
57
57
@@ -62,7 +62,7 @@ public function mount(): void
62
62
->map (function ($ couple ) {
63
63
return [
64
64
'id ' => $ couple ->id ,
65
- 'couple ' => $ couple ->name . (( $ couple ->date_start ) ? ' ( ' . $ couple ->date_start_formatted . ') ' : '' ) ,
65
+ 'couple ' => $ couple ->name . ($ couple ->date_start ) ? ' ( ' . $ couple ->date_start_formatted . ') ' : '' ,
66
66
];
67
67
})->values ();
68
68
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function mount(): void
44
44
->map (function ($ p ) {
45
45
return [
46
46
'id ' => $ p ->id ,
47
- 'name ' => $ p ->name . ' [ ' . (($ p ->sex === 'm ' ) ? __ ('app.male ' ) : __ ('app.female ' )) . '] ( ' . $ p ->birth_formatted . ') ' ,
47
+ 'name ' => $ p ->name . ' [ ' . (($ p ->sex === 'm ' ) ? __ ('app.male ' ) : __ ('app.female ' )) . '] ' . ( $ p -> birth_formatted ? ' ( ' . $ p ->birth_formatted . ') ' : '' ) ,
48
48
];
49
49
});
50
50
}
You can’t perform that action at this time.
0 commit comments