Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsMeta.php 1 location

@@ 1327-1328 (lines=2) @@
1324
            return $post;
1325
		}
1326
1327
        if ( is_array( $post ) && !empty( $post ) && isset( $post[ 'ID' ] ) && 'attachment' == $post[ 'post_type' ] )
1328
            $post_id = $post[ 'ID' ];
1329
1330
        if ( is_array( $post_id ) || empty( $post_id ) )
1331
            return $post;

classes/PodsForm.php 1 location

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