extensions/felixfbecker.php-intellisense-0.0.12/vendor/felixfbecker/language-server/src/Formatter.php
/**
     * Calculate position of last character.
     *
     * @param string $content document as string
     *
     * @return \LanguageServer\Protocol\Position
     */
Calculate position of last character.
@param string $content document as string


Calculate position of last character . @param string $content document as string
private static function calculateEndPosition(string $content): Position
    {
        $lines = explode("\n", $content);
        return new Position(count($lines) - 1, strlen(end($lines)));
    }
private static function calculateEndPosition ( string $ content ) : Position { $ lines = explode ( " \n " , $ content ) ; return new Position ( count ( $ lines ) - 1 , strlen ( end ( $ lines ) ) ) ; }
Calculate position of last character.
Calculate position of last character .