Code Duplication    Length = 3-3 lines in 5 locations

classes/PodsUI.php 5 locations

@@ 1284-1286 (lines=3) @@
1281
				if ( ! isset( $attributes['options']['date_format_type'] ) ) {
1282
					$attributes['options']['date_format_type'] = 'date';
1283
				}
1284
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related'] ) ) {
1285
					$attributes['related'] = false;
1286
				}
1287
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_id'] ) ) {
1288
					$attributes['related_id'] = 'id';
1289
				}
@@ 1287-1289 (lines=3) @@
1284
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related'] ) ) {
1285
					$attributes['related'] = false;
1286
				}
1287
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_id'] ) ) {
1288
					$attributes['related_id'] = 'id';
1289
				}
1290
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_field'] ) ) {
1291
					$attributes['related_field'] = 'name';
1292
				}
@@ 1290-1292 (lines=3) @@
1287
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_id'] ) ) {
1288
					$attributes['related_id'] = 'id';
1289
				}
1290
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_field'] ) ) {
1291
					$attributes['related_field'] = 'name';
1292
				}
1293
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_multiple'] ) ) {
1294
					$attributes['related_multiple'] = false;
1295
				}
@@ 1293-1295 (lines=3) @@
1290
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_field'] ) ) {
1291
					$attributes['related_field'] = 'name';
1292
				}
1293
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_multiple'] ) ) {
1294
					$attributes['related_multiple'] = false;
1295
				}
1296
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_sql'] ) ) {
1297
					$attributes['related_sql'] = false;
1298
				}
@@ 1296-1298 (lines=3) @@
1293
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_multiple'] ) ) {
1294
					$attributes['related_multiple'] = false;
1295
				}
1296
				if ( 'related' !== $attributes['type'] || ! isset( $attributes['related_sql'] ) ) {
1297
					$attributes['related_sql'] = false;
1298
				}
1299
				if ( 'related' === $attributes['type'] && ( is_array( $attributes['related'] ) || strpos( $attributes['related'], ',' ) ) ) {
1300
					if ( ! is_array( $attributes['related'] ) ) {
1301
						$attributes['related'] = @explode( ',', $attributes['related'] );