refactored pdf document
refactored ErrorMessageSequencer
fixed array flattening issue
refactored license checklist
hound fixes
reset to single line
Merge pull request #582 from ministryofjustice/code-climate

Refactoring to reduce duplication and complexity.