Sanitizing and cleaning #38

Based on the tech/services branch

*Note*:
- Fixed a lot of phpdoc
- When checking the validity of Text::setCurrentLineNumber, I also tested that the number is strictly inferior to the number of lines.
And I just keep forgetting about this one too...