End of line character is invalid; expected "\n" but found "\r\n"
Showing me the error, I have attached the php file. please help me.
I am using Moodle 3.5 and
editor : Sublime text
It looks like you are developing on Windows since "\r\n" is the end of line marker for it.
Unix and Linux use "\n" instead for line endings.
If you are getting it from one of the coding standards tools for Moodle you could ignore it so long as in GIT you have it set to auto convert line endings using the core.autocrlf setting so that it is always stored in your source control correctly.