Typos in Hub class docblocks

Signed-off-by: Graham Campbell <graham@mineuk.com>
DocBlock corrections and typo fixes

Signed-off-by: Graham Campbell <graham@mineuk.com>
Fixed minor issues in the start session middleware
Minor fixes
More docblock fixes
Removed yoda comparison
Fixed some closure docblocks
Merge pull request #6822 from GrahamForks/5.0-cs

[5.0] CS Fixes And Minor Fixes