Code Duplication    Length = 2-3 lines in 3 locations

classes/Pods.php 1 location

@@ 3590-3591 (lines=2) @@
3587
		$tag = trim( $tag, ' {@}' );
3588
		$tag = explode( ',', $tag );
3589
3590
		if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
3591
			return '';
3592
3593
		foreach ( $tag as $k => $v ) {
3594
			$tag[ $k ] = trim( $v );

includes/data.php 1 location

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

classes/PodsUI.php 1 location

@@ 4037-4038 (lines=2) @@
4034
        $tag = trim( $tag, ' {@}' );
4035
        $tag = explode( ',', $tag );
4036
4037
        if ( empty( $tag ) || !isset( $tag[ 0 ] ) || strlen( trim( $tag[ 0 ] ) ) < 1 )
4038
            return null;
4039
4040
        foreach ( $tag as $k => $v ) {
4041
            $tag[ $k ] = trim( $v );