Code Duplication    Length = 9-9 lines in 2 locations

core/src/Support/DataGrid.php 2 locations

@@ 252-260 (lines=9) @@
249
				$value = number_format($value);
250
				break;
251
252
			case "float":
253
				if($align == "") {
254
					$align = "right";
255
				}
256
				if(!$type_format) {
257
					$type_format = 2;
258
				}
259
				$value = number_format($value, $type_format);
260
				break;
261
262
			case "currency":
263
				if($align == "") {
@@ 262-270 (lines=9) @@
259
				$value = number_format($value, $type_format);
260
				break;
261
262
			case "currency":
263
				if($align == "") {
264
					$align = "right";
265
				}
266
				if(!$type_format) {
267
					$type_format = 2;
268
				}
269
				$value = "$" . number_format($value, $type_format);
270
				break;
271
272
			case "date":
273
				if($align == "") {