Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1190-1191 (lines=2) @@
1187
                    $attributes[ 'filter_label' ] = $attributes[ 'label' ];
1188
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'filter_default' ] ) || !in_array( $field, $this->filters ) )
1189
                    $attributes[ 'filter_default' ] = false;
1190
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1191
                    $attributes[ 'date_ongoing' ] = false;
1192
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1193
                    $attributes[ 'date_ongoing_default' ] = false;
1194
                if ( !isset( $attributes[ 'export' ] ) )
@@ 1192-1193 (lines=2) @@
1189
                    $attributes[ 'filter_default' ] = false;
1190
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !in_array( $field, $this->filters ) )
1191
                    $attributes[ 'date_ongoing' ] = false;
1192
                if ( false === $attributes[ 'options' ][ 'filter' ] || !isset( $attributes[ 'date_ongoing' ] ) || 'date' != $attributes[ 'type' ] || !isset( $attributes[ 'date_ongoing_default' ] ) || !in_array( $field, $this->filters ) )
1193
                    $attributes[ 'date_ongoing_default' ] = false;
1194
                if ( !isset( $attributes[ 'export' ] ) )
1195
                    $attributes[ 'export' ] = true;
1196
                if ( !isset( $attributes[ 'group_related' ] ) )