Code Duplication    Length = 6-6 lines in 3 locations

classes/Pods.php 3 locations

@@ 1015-1020 (lines=6) @@
1012
				if ( ! isset( $this->fields['post_thumbnail'] ) && ( 'post_thumbnail' === $params->name || 0 === strpos( $params->name, 'post_thumbnail.' ) ) ) {
1013
					$size = 'thumbnail';
1014
1015
					if ( 0 === strpos( $params->name, 'post_thumbnail.' ) ) {
1016
						$field_names = explode( '.', $params->name );
1017
1018
						if ( isset( $field_names[1] ) ) {
1019
							$size = $field_names[1];
1020
						}
1021
					}
1022
1023
					// Pods will auto-get the thumbnail ID if this isn't an attachment
@@ 1030-1035 (lines=6) @@
1027
				} elseif ( ! isset( $this->fields['post_thumbnail_url'] ) && ( 'post_thumbnail_url' === $params->name || 0 === strpos( $params->name, 'post_thumbnail_url.' ) ) ) {
1028
					$size = 'thumbnail';
1029
1030
					if ( 0 === strpos( $params->name, 'post_thumbnail_url.' ) ) {
1031
						$field_names = explode( '.', $params->name );
1032
1033
						if ( isset( $field_names[1] ) ) {
1034
							$size = $field_names[1];
1035
						}
1036
					}
1037
1038
					// Pods will auto-get the thumbnail ID if this isn't an attachment
@@ 1091-1096 (lines=6) @@
1088
				if ( ! isset( $this->fields['avatar'] ) && ( 'avatar' === $params->name || 0 === strpos( $params->name, 'avatar.' ) ) ) {
1089
					$size = null;
1090
1091
					if ( 0 === strpos( $params->name, 'avatar.' ) ) {
1092
						$field_names = explode( '.', $params->name );
1093
1094
						if ( isset( $field_names[1] ) ) {
1095
							$size = (int) $field_names[1];
1096
						}
1097
					}
1098
1099
					if ( 0 < $size ) {