private function getIntegrityHtml (Asset $asset) : string
    {
        return $this->isDebug
            ? ""
            : sprintf(
                ' integrity="sha256-%s"',
                $this->registry->get($asset)->getHash()
            );
    }
private function getIntegrityHtml (Asset $asset) : string
    {
        return $this->isDebug
            ? ""
            : sprintf(
                ' integrity="sha256-%s"',
                $this->registry->get($asset)->getHash()
            );
    }
private function getIntegrityHtml ( Asset $ asset ) : string { return $ this -> isDebug ? "" : sprintf ( ' integrity="sha256-%s"' , $ this -> registry -> get ( $ asset ) -> getHash ( ) ) ; }
Returns the integrity HTML snippet

@param Asset $asset
@return string
@throws AssetsException
Returns the integrity HTML snippet