Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1204-1205 (lines=2) @@
1201
                    $attributes[ 'filter_label' ] = $attributes[ 'label' ];
1202
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'filter_default' ] ) || !in_array( $field, $this->filters ) )
1203
                    $attributes[ 'filter_default' ] = false;
1204
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1205
                    $attributes[ 'date_ongoing' ] = false;
1206
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1207
                    $attributes[ 'date_ongoing_default' ] = false;
1208
                if ( !isset( $attributes[ 'export' ] ) )
@@ 1206-1207 (lines=2) @@
1203
                    $attributes[ 'filter_default' ] = false;
1204
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1205
                    $attributes[ 'date_ongoing' ] = false;
1206
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1207
                    $attributes[ 'date_ongoing_default' ] = false;
1208
                if ( !isset( $attributes[ 'export' ] ) )
1209
                    $attributes[ 'export' ] = true;
1210
                if ( !isset( $attributes[ 'group_related' ] ) )