public static final function endManialink() { if (!end(self::$parentNodes)->hasChildNodes()) { end(self::$parentNodes)->nodeValue = ' '; } array_pop(self::$parentNodes); Manialink::$domDocument = null; Manialink::$parentNodes = null; Manialink::$parentLayouts = null; }