Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/website.php 2 locations

@@ 284-285 (lines=2) @@
281
            if ( 'normal' == pods_var( self::$type . '_format', $options ) )
282
                $value = $this->build_url( $url );
283
            elseif ( 'no-www' == pods_var( self::$type . '_format', $options ) ) {
284
                if ( 0 === strpos( $url[ 'host' ], 'www.' ) )
285
                    $url[ 'host' ] = substr( $url[ 'host' ], 4 );
286
287
                $value = $this->build_url( $url );
288
            }
@@ 303-304 (lines=2) @@
300
                    $value = trim( $value, '/' );
301
            }
302
            elseif ( 'no-http-no-www' == pods_var( self::$type . '_format', $options ) ) {
303
                if ( 0 === strpos( $url[ 'host' ], 'www.' ) )
304
                    $url[ 'host' ] = substr( $url[ 'host' ], 4 );
305
306
                $value = $this->build_url( $url );
307
                $value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value );