Sanitizing #38

Based on tech/services

*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.