Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/website.php 2 locations

@@ 283-284 (lines=2) @@
280
                $value = $this->build_url( $url );
281
            }
282
            elseif ( 'force-www' == pods_var( self::$type . '_format', $options ) ) {
283
                if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) )
284
                    $url[ 'host' ] = 'www.' . $url[ 'host' ];
285
286
                $value = $this->build_url( $url );
287
            }
@@ 306-307 (lines=2) @@
303
                    $value = trim( $value, '/' );
304
            }
305
            elseif ( 'no-http-force-www' == pods_var( self::$type . '_format', $options ) ) {
306
                if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) )
307
                    $url[ 'host' ] = 'www.' . $url[ 'host' ];
308
309
                $value = $this->build_url( $url );
310
                $value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value );