File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ public function timezones()
7171
7272 public function getFlagIconAttribute (): ?string
7373 {
74- return @file_exists (base_path ('packages/flag-icons-circle/resources/svg/ ' .$ this ->alpha2 .'.svg ' ))
75- ? "flag- {$ this ->alpha2 }"
76- : null ;
74+ return "flag- {$ this ->alpha2 }" ;
7775 }
7876}
Original file line number Diff line number Diff line change @@ -43,18 +43,12 @@ public function getLanguageFlagIconAttribute(): ?string
4343 {
4444 return match ($ this ->language ?->alpha2) {
4545 'ar ' => 'flag-ar_arab ' ,
46- default => @file_exists (base_path ('packages/flag-icons-circle/resources/svg/ ' .$ this ->language ?->alpha2.'.svg ' ))
47- ? "flag- {$ this ->language ?->alpha2}"
48- : (@file_exists (base_path ('packages/flag-icons-circle/resources/svg/ ' .$ this ->country ?->alpha2.'.svg ' ))
49- ? "flag- {$ this ->country ?->alpha2}"
50- : null ),
46+ default => "flag- {$ this ->language ?->alpha2}" ,
5147 };
5248 }
5349
5450 public function getCountryFlagIconAttribute (): ?string
5551 {
56- return @file_exists (base_path ('packages/flag-icons-circle/resources/svg/ ' .$ this ->country ?->alpha2.'.svg ' ))
57- ? "flag- {$ this ->country ?->alpha2}"
58- : null ;
52+ return "flag- {$ this ->country ?->alpha2}" ;
5953 }
6054}
You can’t perform that action at this time.
0 commit comments