- 🇳🇿New Zealand quietone
The first case here isn't how @code/@endcode is supposed to be used. The Drupal standard states
Drupal standards: Put the @code and @endcode tags on their own lines. Do not use a blank line between the text that explains the code sample and the code sample itself.
So, I think that should be re-written.