Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Short array syntax must be used to define arrays
(Drupal.Arrays.DisallowLongArraySyntax.Found)
There must be exactly one blank line before the tags in a doc comment
(Drupal.Commenting.DocComment.SpacingBeforeTags)
Expected 1 space after FUNCTION keyword; 0 found
(Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
Description for the @return value is missing
(Drupal.Commenting.FunctionComment.MissingReturnComment)
Doc comment short description must end with a full stop
(Drupal.Commenting.DocComment.ShortFullStop)
Array closing indentation error, expected 4 spaces but found 6
(Drupal.Arrays.Array.ArrayClosingIndentation)
The closing brace for the class must have an empty line before it
(Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
Comment | File | Size | Author |
---|---|---|---|
#2 | monolog-fix_drupal_coding_standard_and_drupal_practice-3228951-14195268-8.x-1.x.patch | 8.75 KB | omrmankar |
Comments
Comment #2
omrmankarHi,
I have created a patch that is working according to the phpcs standards and resolves all errors.
The patch is attached.
Comment #4
lussolucaCommitted and pushed to 2.x-dev. Thanks!