localgovdrupal / localgov_alert_banner

Alert banner module for LocalGovDrupal
GNU General Public License v2.0
4 stars 8 forks source link

Run and fix code standards issues #5

Closed andybroomfield closed 4 years ago

andybroomfield commented 4 years ago

Results from running phpcs

FILE: ...pal/web/modules/contrib/localgov_alert_banner/localgov_alert_banner.module
--------------------------------------------------------------------------------
FOUND 39 ERRORS AND 7 WARNINGS AFFECTING 39 LINES
--------------------------------------------------------------------------------
  27 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
  27 | ERROR   | [x] Doc comment short description must end with a full stop
  31 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  33 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
  38 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
  38 | ERROR   | [x] Doc comment short description must end with a full stop
  40 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
  45 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  50 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  53 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  55 | ERROR   | [x] Concat operator must be surrounded by a single space
  65 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
  65 | ERROR   | [x] Doc comment short description must end with a full stop
  71 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  74 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  75 | WARNING | [ ] Unused variable $cookie.
  77 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  80 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  86 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
  96 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
  96 | ERROR   | [x] Doc comment short description must end with a full stop
  98 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
 103 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
 103 | ERROR   | [x] Doc comment short description must end with a full stop
 105 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
 110 | ERROR   | [x] Doc comment short description must end with a full stop
 112 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
 114 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 116 | ERROR   | [x] Expected 1 space after closing parenthesis; found 2
 121 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 131 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or
     |         |     "* Implements hook_foo_BAR_ID_bar() for block templates."
 131 | ERROR   | [x] Doc comment short description must end with a full stop
 133 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
 135 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 138 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 157 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 161 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 168 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
     |         |     but found "true"
 174 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 179 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 182 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 185 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 186 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
     |         |     but found "true"
 190 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 191 | ERROR   | [x] Concat operator must be surrounded by a single space
 191 | ERROR   | [x] Concat operator must be surrounded by a single space
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 39 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ontrib/localgov_alert_banner/tests/src/Functional/AlertBannerBlockTest.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------
  8 | ERROR   | [x] Doc comment short description must end with a full stop
 32 | WARNING | [ ] Possible useless method overriding detected
 40 | ERROR   | [x] No space found before comment text; expected "// Set up an
    |         |     alert banner." but found "//Set up an alert banner."
 67 | ERROR   | [x] No space found before comment text; expected "// Set up an
    |         |     alert banner." but found "//Set up an alert banner."
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...s/contrib/localgov_alert_banner/src/Access/AlertBannerEntityPageAccess.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
    |       |     with a file doc comment
  4 | ERROR | [x] Doc comment short description must end with a full stop
 13 | ERROR | [x] Missing class doc comment
 15 | ERROR | [x] Missing function doc comment
 19 | ERROR | [x] Expected newline after closing brace
 22 | ERROR | [x] Expected 1 blank line after function; 0 found
 23 | ERROR | [x] The closing brace for the class must have an empty line
    |       |     before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...les/contrib/localgov_alert_banner/src/Controller/AlertBannerController.php
--------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 11 LINES
--------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin
    |         |     with a file doc comment
  3 | ERROR   | [x] Doc comment short description must end with a full stop
  4 | ERROR   | [x] There must be exactly one blank line before the tags in a
    |         |     doc comment
 19 | ERROR   | [x] Doc comment short description must end with a full stop
 21 | ERROR   | [x] Doc comment long description must end with a full stop
 31 | ERROR   | [x] Expected newline after closing brace
 32 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 37 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 42 | ERROR   | [x] Doc comment short description must end with a full stop
 43 | ERROR   | [x] There must be exactly one blank line before the tags in a
    |         |     doc comment
 43 | ERROR   | [ ] Description for the @return value must be on the next line
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...vdrupal/web/modules/contrib/localgov_alert_banner/src/AlertBannerState.php
--------------------------------------------------------------------------------
FOUND 25 ERRORS AFFECTING 23 LINES
--------------------------------------------------------------------------------
  3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
    |       |     with a file doc comment
  4 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
  5 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
  6 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
  7 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
  8 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
  9 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
 10 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
 17 | ERROR | [x] Doc comment short description must end with a full stop
 23 | ERROR | [ ] Missing short description in doc comment
 28 | ERROR | [ ] Missing short description in doc comment
 35 | ERROR | [x] There must be exactly one blank line before the tags in a doc
    |       |     comment
 35 | ERROR | [ ] Missing parameter comment
 42 | ERROR | [ ] Missing short description in doc comment
 43 | ERROR | [ ] Missing parameter comment
 46 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced
    |       |     with use statements
 47 | ERROR | [x] Concat operator must be surrounded by a single space
 48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
    |       |     found "true"
 49 | ERROR | [x] Concat operator must be surrounded by a single space
 49 | ERROR | [x] Concat operator must be surrounded by a single space
 54 | ERROR | [ ] Missing short description in doc comment
 55 | ERROR | [ ] Description for the @return value is missing
 58 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but
    |       |     found "null"
 61 | ERROR | [ ] Missing short description in doc comment
 62 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...s/contrib/localgov_alert_banner/src/Routing/AlertBannerRouteSubscriber.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin
    |       |     with a file doc comment
  4 | ERROR | [x] Doc comment short description must end with a full stop
 23 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
    |       |     question marks, colons, or closing parentheses
 27 | ERROR | [x] Expected 1 blank line after function; 0 found
 28 | ERROR | [x] The closing brace for the class must have an empty line
    |       |     before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: .../contrib/localgov_alert_banner/src/EventSubscriber/AlertBannerFlagLive.php
--------------------------------------------------------------------------------
FOUND 41 ERRORS AND 6 WARNINGS AFFECTING 32 LINES
--------------------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin
    |         |     with a file doc comment
  4 | ERROR   | [x] Expected 1 space(s) before asterisk; 0 found
  5 | ERROR   | [x] Expected 1 space(s) before asterisk; 0 found
  6 | ERROR   | [x] Expected 1 space(s) before asterisk; 0 found
  7 | ERROR   | [x] Expected 1 space(s) before asterisk; 0 found
  8 | ERROR   | [x] Expected 1 space(s) before asterisk; 0 found
 16 | ERROR   | [x] Missing class doc comment
 19 | ERROR   | [x] Doc comment short description must start with a capital
    |         |     letter
 19 | ERROR   | [x] Doc comment short description must end with a full stop
 20 | ERROR   | [x] There must be exactly one blank line before the tags in a
    |         |     doc comment
 20 | ERROR   | [ ] Missing parameter comment
 20 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found
    |         |     2
 25 | WARNING | [ ] Unused variable $entityId.
 28 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 31 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 33 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 36 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 39 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 40 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 46 | ERROR   | [x] Doc comment short description must end with a full stop
 47 | ERROR   | [x] There must be exactly one blank line before the tags in a
    |         |     doc comment
 47 | ERROR   | [x] Expected 1 spaces after parameter type; 4 found
 47 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found
    |         |     2
 47 | ERROR   | [x] Parameter comment must be on the next line
 48 | ERROR   | [ ] Parameter comment must start with a capital letter
 48 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found
    |         |     2
 48 | ERROR   | [x] Parameter comment must be on the next line
 48 | ERROR   | [x] Parameter comment must end with a full stop
 49 | ERROR   | [x] Separate the @param and @return sections by a blank line.
 49 | ERROR   | [ ] Description for the @return value must be on the next line
 53 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 55 | ERROR   | [x] Object operator not indented correctly; expected 6 spaces
    |         |     but found 33
 61 | ERROR   | [x] Doc comment short description must end with a full stop
 63 | ERROR   | [x] Doc comment long description must end with a full stop
 64 | ERROR   | [x] There must be exactly one blank line before the tags in a
    |         |     doc comment
 64 | ERROR   | [ ] Missing parameter comment
 64 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found
    |         |     2
 65 | ERROR   | [x] Expected 1 spaces after parameter type; 22 found
 65 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found
    |         |     2
 65 | ERROR   | [x] Parameter comment must be on the next line
 65 | ERROR   | [x] Parameter comment must end with a full stop
 67 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
    |         |     with use statements
 69 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 72 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
    |         |     question marks, colons, or closing parentheses
 73 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
 75 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
    |         |     injection instead
 77 | ERROR   | [x] Expected 1 blank line after function; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
andybroomfield commented 4 years ago

Current issues after running lando phix

FILE: ...dules/contrib/localgov_alert_banner/localgov_alert_banner.module
----------------------------------------------------------------------
FOUND 1 ERROR AND 8 WARNINGS AFFECTING 9 LINES
----------------------------------------------------------------------
  29 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
  40 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
  67 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
  77 | WARNING | Unused variable $cookie.
  92 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
  99 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
 127 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
 192 | WARNING | Format should be "* Implements hook_foo().", "*
     |         | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         | "* Implements hook_foo_BAR_ID_bar() for
     |         | xyz-bar.html.twig.", "* Implements
     |         | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         | Implements hook_foo_BAR_ID_bar() for block
     |         | templates."
 194 | ERROR   | localgov_alert_banner_uninstall() is an installation
     |         | hook and must be declared in an install file
----------------------------------------------------------------------

FILE: ...algov_alert_banner/tests/src/Functional/AlertBannerBlockTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 32 | WARNING | Possible useless method overriding detected
----------------------------------------------------------------------

FILE: ...les/contrib/localgov_alert_banner/localgov_alert_banner.page.inc
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 24 | WARNING | Unused variable $localgov_alert_banner.
----------------------------------------------------------------------

FILE: ...localgov_alert_banner/src/Form/AlertBannerRevisionRevertForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 111 | WARNING | t() calls should be avoided in classes, use
     |         | \Drupal\Core\StringTranslation\StringTranslationTrait
     |         | and $this->t() instead
----------------------------------------------------------------------

FILE: ...localgov_alert_banner/src/Form/AlertBannerRevisionDeleteForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 95 | WARNING | t() calls should be avoided in classes, use
    |         | \Drupal\Core\StringTranslation\StringTranslationTrait
    |         | and $this->t() instead
----------------------------------------------------------------------

FILE: ...localgov_alert_banner/src/Access/AlertBannerEntityPageAccess.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
  9 | ERROR | Doc comment is empty
 14 | ERROR | Doc comment is empty
----------------------------------------------------------------------

FILE: ...modules/contrib/localgov_alert_banner/src/Entity/AlertBanner.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 204 | WARNING | Translatable strings must not begin or end with
     |         | white spaces, use placeholders with t() for
     |         | variables
 317 | WARNING | Translatable strings must not begin or end with
     |         | white spaces, use placeholders with t() for
     |         | variables
----------------------------------------------------------------------

FILE: ...b/modules/contrib/localgov_alert_banner/src/AlertBannerState.php
----------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------
 15 | ERROR | Missing short description in doc comment
 20 | ERROR | Missing short description in doc comment
 28 | ERROR | Missing parameter comment
 35 | ERROR | Missing short description in doc comment
 36 | ERROR | Missing parameter comment
 47 | ERROR | Missing short description in doc comment
 48 | ERROR | Description for the @return value is missing
 54 | ERROR | Missing short description in doc comment
 55 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------

FILE: ...ocalgov_alert_banner/src/EventSubscriber/AlertBannerFlagLive.php
----------------------------------------------------------------------
FOUND 5 ERRORS AND 7 WARNINGS AFFECTING 12 LINES
----------------------------------------------------------------------
 10 | ERROR   | Doc comment is empty
 18 | ERROR   | Missing parameter comment
 23 | WARNING | Unused variable $entityId.
 29 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
 38 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
 49 | ERROR   | Parameter comment must start with a capital letter
 51 | ERROR   | Description for the @return value must be on the next
    |         | line
 55 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
 65 | WARNING | Line exceeds 80 characters; contains 81 characters
 67 | ERROR   | Missing parameter comment
 73 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
 79 | WARNING | \Drupal calls should be avoided in classes, use
    |         | dependency injection instead
----------------------------------------------------------------------