CS fixes

Most fixes have been done using the PHP-CS-Fixer tool. A few others are about fixing the phpdoc based on Scrutinizer suggestions and issues
Any particular reason why, Graham? This way we stop someone extending PromptingGenerator and forgetting to implement the interface.