Throw an error and fix incorrect array alignment.

@param int    $ptr        Stack pointer to the first content on the line.
@param string $error      Error message.
@param string $error_code Error code.
@param int    $expected   Expected nr of spaces (tabs translated to space value).
@param int    $found      Found nr of spaces (tabs translated to space value).
@param string $new_indent Whitespace indent replacement content.