Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsForm.php 1 location

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

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;