Improve .gitignore
Fix code style
Refactoring Line into LineAlignment
Add phpDoc