File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 77
88class AuditResolver
99{
10- public static function findUserId (Model | null $ model ): ?int
10+ public static function findUserId (? Model $ model ): ?int
1111 {
1212 if (empty ($ model )) {
1313 return null ;
Original file line number Diff line number Diff line change 55
66use App \User ;
77use Carbon \Carbon ;
8+ use Exception ;
89use Illuminate \Database \Eloquent \Relations \BelongsTo ;
910use Illuminate \Database \Eloquent \Relations \MorphTo ;
1011use Sourcetoad \Logger \Enums \ActivityType ;
@@ -54,7 +55,7 @@ class AuditActivity extends BaseModel
5455 // Mutators
5556 //--------------------------------------------------------------------------------------------------------------
5657
57- protected function setIpAddressAttribute (string | null $ value ): void
58+ protected function setIpAddressAttribute (? string $ value ): void
5859 {
5960 $ this ->attributes ['ip_address ' ] = inet_pton ((string )$ value );
6061 }
@@ -90,7 +91,7 @@ public function getHumanActivityAttribute(): string
9091 ActivityType::PASSWORD_CHANGE => trans ('logger::enums.activity_type_password_change ' ),
9192 ActivityType::GET_DATA => trans ('logger::enums.activity_type_get_data ' ),
9293 ActivityType::MODIFY_DATA => trans ('logger::enums.activity_type_modify_data ' ),
93- default => throw new \ Exception ('Unknown enum type: ' . $ this ->type ),
94+ default => throw new Exception ('Unknown enum type: ' . $ this ->type ),
9495 };
9596 }
9697
You can’t perform that action at this time.
0 commit comments