Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsMeta.php 1 location

@@ 1350-1351 (lines=2) @@
1347
            return $post;
1348
		}
1349
1350
        if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] )
1351
            $post_id = $post[ 'ID' ];
1352
1353
        if ( is_array( $post_id ) || empty( $post_id ) )
1354
            return $post;

classes/PodsForm.php 1 location

@@ 489-490 (lines=2) @@
486
487
            $attributes = array_merge( $_attributes, (array) $attributes );
488
489
            if ( isset( $options[ 'attributes' ] ) && is_array( $options[ 'attributes' ] ) && !empty( $options[ 'attributes' ] ) )
490
                $attributes = array_merge( $attributes, $options[ 'attributes' ] );
491
        }
492
        elseif ( isset( $options[ $type . '_attributes' ] ) && is_array( $options[ $type . '_attributes' ] ) && !empty( $options[ $type . '_attributes' ] ) )
493
            $attributes = array_merge( $attributes, $options[ $type . '_attributes' ] );