On reviewing the code I have realized that the whole project doesn't stick to the Drupal coding standards → .
I have done a code reformat using PHPStorm, which I adjusted to the Drupal coding standards.
Attached is the patch, it doesn't change any coding, just mainly whitespace changes:
nd
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.