Code Duplication    Length = 10-11 lines in 2 locations

classes/fields/avatar.php 1 location

@@ 114-123 (lines=10) @@
111
            )
112
        );
113
114
        if ( !pods_version_check( 'wp', '3.5' ) ) {
115
            unset( $options[ self::$type . '_modal_title' ] );
116
            unset( $options[ self::$type . '_modal_add_button' ] );
117
118
            $options[ self::$type . '_attachment_tab' ][ 'default' ] = 'type';
119
            $options[ self::$type . '_attachment_tab' ][ 'data' ] = array(
120
                'type' => __( 'Upload File', 'pods' ),
121
                'library' => __( 'Media Library', 'pods' )
122
            );
123
        }
124
125
        return $options;
126
    }

classes/fields/file.php 1 location

@@ 207-217 (lines=11) @@
204
            )
205
        );
206
207
        if ( !pods_version_check( 'wp', '3.5' ) ) {
208
            unset( $options[ self::$type . '_linked' ] );
209
            unset( $options[ self::$type . '_modal_title' ] );
210
            unset( $options[ self::$type . '_modal_add_button' ] );
211
212
            $options[ self::$type . '_attachment_tab' ][ 'default' ] = 'type';
213
            $options[ self::$type . '_attachment_tab' ][ 'data' ] = array(
214
                'type' => __( 'Upload File', 'pods' ),
215
                'library' => __( 'Media Library', 'pods' )
216
            );
217
        }
218
219
        return $options;
220
    }