PSR-2 fixes + update documentation

- Expected 1 space after FUNCTION keyword
- No space found after comma in function call
- Changed AS for as
- Spelling: propertis for properties
- The closing brace for the class must go on the next line after the body
- Updated documentation
- Namespace fixes