Code Duplication    Length = 2-3 lines in 3 locations

classes/PodsUI.php 1 location

@@ 4154-4155 (lines=2) @@
4151
        $tag = trim( $tag, ' {@}' );
4152
        $tag = explode( ',', $tag );
4153
4154
        if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
4155
            return null;
4156
4157
        foreach ( $tag as $k => $v ) {
4158
            $tag[ $k ] = trim( $v );

classes/Pods.php 1 location

@@ 3642-3643 (lines=2) @@
3639
		$tag = trim( $tag, ' {@}' );
3640
		$tag = explode( ',', $tag );
3641
3642
		if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
3643
			return '';
3644
3645
		foreach ( $tag as $k => $v ) {
3646
			$tag[ $k ] = trim( $v );

includes/data.php 1 location

@@ 1551-1553 (lines=3) @@
1548
	$tag = trim( $tag, ' {@}' );
1549
	$tag = explode( '.', $tag );
1550
1551
	if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 ) {
1552
		return '';
1553
	}
1554
1555
	// Fix formatting that may be after the first .
1556
	if ( 2 < count( $tag ) ) {