Code Duplication    Length = 2-2 lines in 3 locations

deprecated/classes/Pods.php 1 location

@@ 394-395 (lines=2) @@
391
					$name = $field['name'];
392
				}
393
394
				if ( in_array(
395
					$name, array(
396
						'created',
397
						'modified',
398
						'author',

sql/upgrade/PodsUpgrade_2_0_0.php 2 locations

@@ 380-381 (lines=2) @@
377
378
					$row->name = pods_clean_name( $row->name );
379
380
					if ( in_array( $row->name, array( 'created', 'modified', 'author' ) ) ) {
381
						$row->name .= '2';
382
					}
383
384
					$field_type = $row->coltype;
@@ 607-608 (lines=2) @@
604
605
				foreach ( $pod_fields as $field ) {
606
					// Handle name changes
607
					if ( in_array( $field->name, array( 'created', 'modified', 'author' ) ) ) {
608
						$field->name .= '2';
609
					}
610
611
					$types[ $type->id ]['old_fields'][ $field->id ] = $field->name;