Code Duplication    Length = 2-3 lines in 3 locations

includes/data.php 1 location

@@ 1574-1576 (lines=3) @@
1571
	$tag = trim( $tag, ' {@}' );
1572
	$tag = explode( '.', $tag );
1573
1574
	if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 ) {
1575
		return '';
1576
	}
1577
1578
	// Fix formatting that may be after the first .
1579
	if ( 2 < count( $tag ) ) {

classes/Pods.php 1 location

@@ 3605-3606 (lines=2) @@
3602
		$tag = trim( $tag, ' {@}' );
3603
		$tag = explode( ',', $tag );
3604
3605
		if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
3606
			return '';
3607
3608
		foreach ( $tag as $k => $v ) {
3609
			$tag[ $k ] = trim( $v );

classes/PodsUI.php 1 location

@@ 4137-4138 (lines=2) @@
4134
        $tag = trim( $tag, ' {@}' );
4135
        $tag = explode( ',', $tag );
4136
4137
        if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
4138
            return null;
4139
4140
        foreach ( $tag as $k => $v ) {
4141
            $tag[ $k ] = trim( $v );