Code Duplication    Length = 8-8 lines in 2 locations

classes/Pods.php 2 locations

@@ 2947-2954 (lines=8) @@
2944
2945
		$fetch = false;
2946
2947
		if ( null === $id ) {
2948
			$fetch = true;
2949
2950
			$id = $pod->id();
2951
			// @codingStandardsIgnoreLine
2952
		} elseif ( $id != $this->id() ) {
2953
			$pod = pods( $this->pod, $id );
2954
		}
2955
2956
		$this->do_hook( 'add_to', $field, $value, $id );
2957
@@ 3063-3070 (lines=8) @@
3060
3061
		$fetch = false;
3062
3063
		if ( null === $id ) {
3064
			$fetch = true;
3065
3066
			$id = $this->id();
3067
			// @codingStandardsIgnoreLine
3068
		} elseif ( $id != $this->id() ) {
3069
			$pod = pods( $this->pod, $id );
3070
		}
3071
3072
		$this->do_hook( 'remove_from', $field, $value, $id );
3073