Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/website.php 2 locations

@@ 334-335 (lines=2) @@
331
					$value = $this->build_url( $url );
332
				}
333
				elseif ( 'force-www' == pods_var( self::$type . '_format', $options ) ) {
334
					if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) )
335
						$url[ 'host' ] = 'www.' . $url[ 'host' ];
336
337
					$value = $this->build_url( $url );
338
				}
@@ 357-358 (lines=2) @@
354
						$value = trim( $value, '/' );
355
				}
356
				elseif ( 'no-http-force-www' == pods_var( self::$type . '_format', $options ) ) {
357
					if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) )
358
						$url[ 'host' ] = 'www.' . $url[ 'host' ];
359
360
					$value = $this->build_url( $url );
361
					$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value );