Determine if the address is a Link-Local address.

@return bool
356917
public function isLinkLocal(): bool
    {
        if ($this->is_link_local === null) {
            $this->is_link_local = $this->isIn(static::$link_local_block);
        }

        return $this->is_link_local;
    }
871694
public static function isWeb()
    {
        return self::isApache() || self::isIIS() || self::isCgi() || self::isBuiltInWebServer() || self::isHHVM();
    }
518795
public function LinkOrCurrent()
    {
        $isCurrent = null;
        $this->extend('updateLinkOrCurrent', $isCurrent);
        if ($isCurrent) {
            return $this->config()->get('linking_mode_current');
        } else {
            return $this->config()->get('linking_mode_default');
        }
    }
990495
private function is_network_level_site_specific_action() {
            if ( ! $this->_is_network_active ) {
                return false;
            }

            if ( ! fs_is_network_admin() ) {
                return false;
            }

            $blog_id = fs_request_get( 'blog_id', '' );

            return is_numeric( $blog_id ) ? $blog_id : false;
        }
1201179
public function isValid()
	{
		return isset($this->path)
			|| isset($this->params)
			|| isset($this->anchor)
			|| isset($this->secure)
			|| isset($this->host)
			|| isset($this->port)
			|| isset($this->user)
			|| isset($this->pass);
	}
550892
public function canShowUrl()
    {
        return (boolean)$this->quote->getStore()->getWebsite()->getConfig(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_CONTENT_LINK_ENABLED
        );
    }
541242
public function isRedirect()
    {
        $codes = [
            static::STATUS_MOVED_PERMANENTLY,
            static::STATUS_FOUND,
            static::STATUS_SEE_OTHER,
            static::STATUS_TEMPORARY_REDIRECT,
        ];

        return (
            in_array($this->code, $codes) &&
            $this->getHeaderLine('Location')
        );
    }
1146692
public boolean isSingleMember() {
		final Address localAddress = getLocalAddress();
		if (localAddress != null) {
			final List<Address> clusterMembers = getClusterMembers();
			return clusterMembers.size() == 1;
		}
		else {
			return true;
		}
	}
948430
protected function getLocal() {
        if (!$this->_local) {
            $this->_local = new LocalList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['countryCode']
            );
        }

        return $this->_local;
    }
256553
@Override
  public InetAddress addressLocal()
  {
    if (_localAddr == null) {
      try {
        _localAddr = InetAddress.getByName(getLocalHost());
      } catch (Exception e) {
        log.log(Level.FINE, e.toString(), e);
      }
    }

    return _localAddr;
  }
655803
public function checkSymLinksExists() {
		$symlinksList = $this->_modelConfigInstaller->getListSymlinksCreation();
		if (empty($symlinksList)) {
			return true;
		}

		foreach ($symlinksList as $link => $target) {
			if (empty($link)) {
				continue;
			}

			if (!file_exists($link) || (!is_link($link) && (DS !== '\\'))) {
				return false;
			}

			if (stripos(readlink($link), $target) !== 0) {
				return false;
			}
		}

		return true;
	}
1185498
public function isLocalPrimaryKey()
    {
        $localPKCols = [];
        foreach ($this->parentTable->getPrimaryKey() as $lPKCol) {
            $localPKCols[] = $lPKCol->getName();
        }

        return count($localPKCols) === count($this->localColumns) && !array_diff($localPKCols, $this->localColumns);
    }
109402
public static function isStandardResourceOrExtLinkElement( $namespaceURI, $localName )
	{
		return 	$namespaceURI == self::$standardPrefixes[ STANDARD_PREFIX_LINK ] &&
				isset( self::$standardLinkElements[ $localName ] ) ||
				qnameNsLocalName( $namespaceURI, $localName )->equals( self::qnameNS( self::$ixRelationship ) );
	}
549734
public function getLinkURL()
    {
        if (!$this->ID) {
            return '';
        }

        $type = $this->Type;
        switch ($type) {
            case 'URL':
                $LinkURL = $this->URL;
                break;
            case 'Email':
                $LinkURL = $this->Email ? "mailto:$this->Email" : null;
                break;
            case 'Phone':
                $LinkURL = $this->Phone ? "tel:$this->Phone" : null;
                break;
            default:
                if ($this->getTypeHasDbField()) {
                    $LinkURL = $this->{$type};
                } else {
                    if ($type && $component = $this->getComponent($type)) {
                        if (!$component->exists()) {
                            $LinkURL = false;
                        } elseif ($component->hasMethod('Link')) {
                            $LinkURL = $component->Link() . $this->Anchor;
                        } else {
                            $LinkURL = "Please implement a Link() method on your dataobject \"$type\"";
                        }
                    }
                }
                break;
        }

        $this->extend('updateLinkURL', $LinkURL);

        return $LinkURL;
    }
62080
function isLocalURL( aURL ) {

    // check if the URL belongs to an asset on the same domain the application is running on

    if ( aURL.substr( 0, 2 ) === "./" ||
        aURL.indexOf( window.location.protocol + "//" + window.location.host ) === 0 ) {
        return true;
    }

    // check if given URL is a http(s) URL, if so we know it is not local

    let urlRoot = ( aURL.split( "#" )[ 0 ] ).split( "?" )[ 0 ];

    // .html-file in the path name ? strip it

    if ( urlRoot.indexOf( ".html" ) > -1 ) {

        const urlArr    = urlRoot.split( "/" );
        const arrLength = urlArr.length;
        urlRoot = urlRoot.split( urlArr[ arrLength - 1 ]).join( "" );
    }

    if ( urlRoot ) {
        const match = urlRoot.match( /^http[s]?:/ );
        if ( Array.isArray( match ) && match.length > 0 ) {
            return false;
        }
    }

    // at this point we know we're likely dealing with a data URL, which is local

    return true;
}
50331
protected function validateAddress()
    {
        $id = $this->getUpdatingId();

        if ($id === false) {
            return null;
        }

        $data = $this->address->get($id);

        if (empty($data)) {
            $this->setErrorUnavailable('update', $this->translation->text('Address'));
            return false;
        }

        $this->setUpdating($data);
        return true;
    }
170899
public function determineIfLocal() {

		// Default it to false
		$this->local = false;

		// Compare the MPD host a few different ways to try and determine if it's local to the Apache server
		if( 	( stream_is_local( $this->socket )) ||
			( $this->host == (isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : getHostByName( getHostName() ))) ||
			( $this->host == 'localhost' ) || 
			( $this->host == '127.0.0.1' )) {

			$this->local = true;
		}
	}