@@ -173,7 +173,7 @@ public static function table(Table $table): Table
173173 ->columns ([
174174 IconColumn::make ('flag_icon ' )
175175 ->label ('' )
176- ->icon (fn (string $ state ): string => $ state ),
176+ ->icon (fn (string $ state ): string => $ state ),
177177 TextColumn::make ('alpha2 ' )
178178 ->label ('Alpha-2 ' )
179179 ->searchable ()
@@ -192,13 +192,15 @@ public static function table(Table $table): Table
192192 ->formatStateUsing (function ($ state ) {
193193 if (is_array ($ state )) {
194194 $ values = array_filter ($ state , function ($ value ) {
195- return is_string ($ value ) && !empty ($ value );
195+ return is_string ($ value ) && ! empty ($ value );
196196 });
197- return !empty ($ values ) ? implode (', ' , $ values ) : '- ' ;
197+
198+ return ! empty ($ values ) ? implode (', ' , $ values ) : '- ' ;
198199 }
199- if (is_string ($ state ) && !empty ($ state )) {
200+ if (is_string ($ state ) && ! empty ($ state )) {
200201 return $ state ;
201202 }
203+
202204 return '- ' ;
203205 })
204206 ->searchable ()
@@ -220,13 +222,15 @@ public static function table(Table $table): Table
220222 ->formatStateUsing (function ($ state ) {
221223 if (is_array ($ state )) {
222224 $ values = array_filter ($ state , function ($ value ) {
223- return is_string ($ value ) && !empty ($ value );
225+ return is_string ($ value ) && ! empty ($ value );
224226 });
225- return !empty ($ values ) ? implode (', ' , $ values ) : '- ' ;
227+
228+ return ! empty ($ values ) ? implode (', ' , $ values ) : '- ' ;
226229 }
227- if (is_string ($ state ) && !empty ($ state )) {
230+ if (is_string ($ state ) && ! empty ($ state )) {
228231 return $ state ;
229232 }
233+
230234 return '- ' ;
231235 })
232236 ->searchable ()
@@ -236,12 +240,12 @@ public static function table(Table $table): Table
236240 ->sortable ()
237241 ->toggleable ()
238242 ->numeric ()
239- ->formatStateUsing (fn ($ state ) => number_format ($ state , 0 , ', ' , '. ' ) . ' ' . __ ('data::fields.people ' )),
243+ ->formatStateUsing (fn ($ state ) => number_format ($ state , 0 , ', ' , '. ' ). ' ' . __ ('data::fields.people ' )),
240244 TextColumn::make ('area ' )
241245 ->label (__ ('data::fields.area ' ))
242246 ->sortable ()
243247 ->numeric ()
244- ->formatStateUsing (fn ($ state ) => $ state ? number_format ((float ) $ state , 2 , ', ' , '. ' ) . ' km² ' : '- ' ),
248+ ->formatStateUsing (fn ($ state ) => $ state ? number_format ((float ) $ state , 2 , ', ' , '. ' ). ' km² ' : '- ' ),
245249 TextColumn::make ('embargo ' )
246250 ->label (__ ('data::fields.embargo ' ))
247251 ->sortable ()
@@ -257,7 +261,7 @@ public static function table(Table $table): Table
257261 ->label (__ ('data::fields.calling_code ' ))
258262 ->badge ()
259263 ->color ('info ' )
260- ->formatStateUsing (fn ($ state ) => $ state ? '+ ' . $ state : '- ' )
264+ ->formatStateUsing (fn ($ state ) => $ state ? '+ ' . $ state : '- ' )
261265 ->toggleable (),
262266 ])
263267 ->defaultSort ('id ' , 'desc ' )
0 commit comments