Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 1 location

@@ 4477-4478 (lines=2) @@
4474
							echo $screen_html;
4475
							$fields = array();
4476
							foreach ( $this->ui_page as $page ) {
4477
								if ( isset( $this->fields[ $page ] ) && ! empty( $this->fields[ $page ] ) ) {
4478
									$fields = $this->fields[ $page ];
4479
								}
4480
							}
4481
							if ( ! empty( $fields ) || true === $this->pagination ) {

deprecated/classes/Pods.php 1 location

@@ 100-101 (lines=2) @@
97
			$fields = array();
98
99
			foreach ( $attributes as $key => $value ) {
100
				if ( isset( $this->obj->fields[ $key ] ) ) {
101
					$fields[ $key ] = $this->obj->fields[ $key ];
102
				}
103
			}
104
		}