Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/website.php 2 locations

@@ 361-362 (lines=2) @@
358
				if ( 'normal' == pods_var( self::$type . '_format', $options ) )
359
					$value = $this->build_url( $url, $options );
360
				elseif ( 'no-www' == pods_var( self::$type . '_format', $options ) ) {
361
					if ( 0 === strpos( $url[ 'host' ], 'www.' ) )
362
						$url[ 'host' ] = substr( $url[ 'host' ], 4 );
363
364
					$value = $this->build_url( $url, $options );
365
				}
@@ 380-381 (lines=2) @@
377
						$value = trim( $value, '/' );
378
				}
379
				elseif ( 'no-http-no-www' == pods_var( self::$type . '_format', $options ) ) {
380
					if ( 0 === strpos( $url[ 'host' ], 'www.' ) )
381
						$url[ 'host' ] = substr( $url[ 'host' ], 4 );
382
383
					$value = $this->build_url( $url, $options );
384
					$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value );