Skip to content

Commit dc002fa

Browse files
committed
Fix comments
1 parent ac92da3 commit dc002fa

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/Models/Incident.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ protected function timestamp(): Attribute
189189
protected function latestStatus(): Attribute
190190
{
191191
return Attribute::make(
192-
get: function ($value) {
193-
return $this->updates()->latest()->first()->status ?? $this->status;
194-
}
192+
get: fn () => $this->updates()->latest()->first()->status ?? $this->status
195193
);
196194
}
197195

src/Models/IncidentComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function component(): BelongsTo
4343
}
4444

4545
/**
46-
* Get the incident the component is attached to.
46+
* Get the incident this component belongs to.
4747
*/
4848
public function incident(): BelongsTo
4949
{

src/Models/ScheduleComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ScheduleComponent extends Pivot
3737
/**
3838
* Get the affected component.
3939
*
40-
* @retun BelongsTo<Component, $this>
40+
* @return BelongsTo<Component, $this>
4141
*/
4242
public function component(): BelongsTo
4343
{

0 commit comments

Comments
 (0)