Removed empty hasAndBelongsToMany associations
Updated docblock
Removed unused code
Normalized indenting and fixed phpcs errors