Code Duplication    Length = 2-2 lines in 2 locations

deprecated/classes/Pods.php 1 location

@@ 91-92 (lines=2) @@
88
            $fields = array();
89
90
            foreach ( $attributes as $key => $value ) {
91
                if ( isset( $this->obj->fields[ $key ] ) )
92
                    $fields[ $key ] = $this->obj->fields[ $key ];
93
            }
94
        }
95

classes/PodsUI.php 1 location

@@ 3897-3898 (lines=2) @@
3894
                        echo $screen_html;
3895
                        $fields = array();
3896
                        foreach ( $this->ui_page as $page ) {
3897
                            if ( isset( $this->fields[ $page ] ) && !empty( $this->fields[ $page ] ) )
3898
                                $fields = $this->fields[ $page ];
3899
                        }
3900
                        if ( !empty( $fields ) || true === $this->pagination ) {
3901
                            ?>