Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/website.php 2 locations

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