Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsForm.php 1 location

@@ 444-445 (lines=2) @@
441
442
            $attributes = array_merge( $_attributes, (array) $attributes );
443
444
            if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) )
445
                $attributes = array_merge( $attributes, $options[ 'attributes' ] );
446
        }
447
        elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) )
448
            $attributes = array_merge( $attributes, $options[ $type . '_attributes' ] );

classes/PodsMeta.php 1 location

@@ 1416-1417 (lines=2) @@
1413
            return $post;
1414
		}
1415
1416
        if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] )
1417
            $post_id = $post[ 'ID' ];
1418
1419
        if ( is_array( $post_id ) || empty( $post_id ) )
1420
            return $post;