A scan of the module's code yielded a large number of code standard violations, many of which are easily fixed:

FILE: /app/README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/includes/views/search_api_stats.views.inc
----------------------------------------------------------------------
FOUND 54 ERRORS AND 2 WARNINGS AFFECTING 54 LINES
----------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one
     |         |     blank line
   1 | ERROR   | [x] Missing file doc comment
   3 | 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."
   5 | ERROR   | [x] Expected 1 blank line before function; 0 found
   6 | ERROR   | [x] Equals sign not aligned correctly; expected 1
     |         |     space but found 2 spaces
   7 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
   8 | ERROR   | [x] Short array syntax must be used to define arrays
   9 | ERROR   | [x] Short array syntax must be used to define arrays
  15 | ERROR   | [x] Short array syntax must be used to define arrays
  16 | ERROR   | [x] Short array syntax must be used to define arrays
  20 | ERROR   | [x] Short array syntax must be used to define arrays
  23 | ERROR   | [x] Short array syntax must be used to define arrays
  26 | ERROR   | [x] Short array syntax must be used to define arrays
  31 | ERROR   | [x] Short array syntax must be used to define arrays
  32 | ERROR   | [x] Short array syntax must be used to define arrays
  36 | ERROR   | [x] Short array syntax must be used to define arrays
  39 | ERROR   | [x] Short array syntax must be used to define arrays
  42 | ERROR   | [x] Short array syntax must be used to define arrays
  46 | ERROR   | [x] Whitespace found at end of line
  47 | ERROR   | [x] Short array syntax must be used to define arrays
  48 | ERROR   | [x] Short array syntax must be used to define arrays
  52 | ERROR   | [x] Short array syntax must be used to define arrays
  55 | ERROR   | [x] Short array syntax must be used to define arrays
  60 | ERROR   | [x] Short array syntax must be used to define arrays
  61 | ERROR   | [x] Short array syntax must be used to define arrays
  65 | ERROR   | [x] Short array syntax must be used to define arrays
  68 | ERROR   | [x] Short array syntax must be used to define arrays
  71 | ERROR   | [x] Short array syntax must be used to define arrays
  77 | WARNING | [x] There must be no blank line following an inline
     |         |     comment
  77 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
  79 | ERROR   | [x] Short array syntax must be used to define arrays
  84 | ERROR   | [x] Short array syntax must be used to define arrays
  88 | ERROR   | [x] Functions must not contain multiple empty lines
     |         |     in a row; found 2 empty lines
  90 | ERROR   | [x] Short array syntax must be used to define arrays
  94 | ERROR   | [x] Functions must not contain multiple empty lines
     |         |     in a row; found 2 empty lines
  96 | ERROR   | [x] Short array syntax must be used to define arrays
 101 | ERROR   | [x] Short array syntax must be used to define arrays
 105 | ERROR   | [x] Functions must not contain multiple empty lines
     |         |     in a row; found 3 empty lines
 107 | ERROR   | [ ] More than 2 empty lines are not allowed
 108 | ERROR   | [x] Short array syntax must be used to define arrays
 113 | ERROR   | [x] Short array syntax must be used to define arrays
 118 | ERROR   | [x] Short array syntax must be used to define arrays
 123 | ERROR   | [x] Short array syntax must be used to define arrays
 128 | ERROR   | [x] Short array syntax must be used to define arrays
 133 | ERROR   | [x] Short array syntax must be used to define arrays
 138 | ERROR   | [x] Short array syntax must be used to define arrays
 143 | ERROR   | [x] Short array syntax must be used to define arrays
 148 | ERROR   | [x] Short array syntax must be used to define arrays
 153 | ERROR   | [x] Short array syntax must be used to define arrays
 159 | ERROR   | [x] Short array syntax must be used to define arrays
 164 | ERROR   | [x] Short array syntax must be used to define arrays
 171 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
 172 | ERROR   | [x] Short array syntax must be used to define arrays
 175 | ERROR   | [x] Short array syntax must be used to define arrays
 181 | ERROR   | [x] Short array syntax must be used to define arrays
 186 | ERROR   | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 54 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/includes/views/search_api_stats.views_default.inc
----------------------------------------------------------------------
FOUND 23 ERRORS AND 1 WARNING AFFECTING 23 LINES
----------------------------------------------------------------------
   4 | ERROR   | [x] The second line in the file doc comment must be
     |         |     "@file"
   4 | 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."
   5 | ERROR   | [x] There must be no blank lines after the function
     |         |     comment
   8 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 0
  36 | ERROR   | [x] Short array syntax must be used to define arrays
  44 | ERROR   | [x] Short array syntax must be used to define arrays
  45 | ERROR   | [x] Short array syntax must be used to define arrays
  52 | ERROR   | [x] Short array syntax must be used to define arrays
  59 | ERROR   | [x] Short array syntax must be used to define arrays
  66 | ERROR   | [x] Short array syntax must be used to define arrays
  73 | ERROR   | [x] Short array syntax must be used to define arrays
 123 | ERROR   | [x] Short array syntax must be used to define arrays
 179 | ERROR   | [x] Short array syntax must be used to define arrays
 195 | ERROR   | [x] Short array syntax must be used to define arrays
 220 | ERROR   | [x] Short array syntax must be used to define arrays
 227 | ERROR   | [x] Short array syntax must be used to define arrays
 228 | ERROR   | [x] Short array syntax must be used to define arrays
 235 | ERROR   | [x] Short array syntax must be used to define arrays
 242 | ERROR   | [x] Short array syntax must be used to define arrays
 249 | ERROR   | [x] Short array syntax must be used to define arrays
 298 | ERROR   | [x] Short array syntax must be used to define arrays
 315 | ERROR   | [x] Short array syntax must be used to define arrays
 333 | ERROR   | [x] Short array syntax must be used to define arrays
 400 | ERROR   | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/modules/search_api_stats_block/README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...app/modules/search_api_stats_block/search_api_stats_block.module
----------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one
    |       |     blank line
  5 | ERROR | [x] There must be exactly one blank line after the file
    |       |     comment
  9 | ERROR | [x] Function comment short description must start with
    |       |     exactly one space
 11 | ERROR | [x] Expected 1 blank line before function; 2 found
 13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 13 | ERROR | [x] Short array syntax must be used to define arrays
 14 | ERROR | [x] Short array syntax must be used to define arrays
 15 | ERROR | [x] Short array syntax must be used to define arrays
 18 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: .../search_api_stats_block/src/Plugin/Block/SearchApiStatsBlock.php
----------------------------------------------------------------------
FOUND 86 ERRORS AND 1 WARNING AFFECTING 67 LINES
----------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one
     |         |     blank line
   4 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
   5 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
   6 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
   7 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
   9 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
  18 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
  18 | ERROR   | [x] Expected 1 space before opening brace; found 2
  20 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  23 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  25 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  25 | ERROR   | [x] Short array syntax must be used to define arrays
  25 | ERROR   | [ ] If the line declaring an array spans longer than
     |         |     80 characters, each element should be broken
     |         |     into its own line
  26 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  27 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  29 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  29 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
  30 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  30 | ERROR   | [x] Short array syntax must be used to define arrays
  37 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  37 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
  38 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  38 | ERROR   | [x] Short array syntax must be used to define arrays
  44 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  44 | ERROR   | [x] Inline comments must end in full-stops,
     |         |     exclamation marks, colons, question marks, or
     |         |     closing parentheses
  45 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  45 | ERROR   | [x] Short array syntax must be used to define arrays
  51 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  52 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  54 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  57 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  59 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  60 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  61 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  62 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  64 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  64 | ERROR   | [ ] Missing short description in doc comment
  65 | ERROR   | [ ] Description for the @return value is missing
  67 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  69 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  70 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  72 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  72 | ERROR   | [x] Short array syntax must be used to define arrays
  77 | ERROR   | [x] Short array syntax must be used to define arrays
  78 | WARNING | [x] A comma should follow the last multiline array
     |         |     item. Found: 0
  81 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  83 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  83 | ERROR   | [ ] Missing short description in doc comment
  84 | ERROR   | [ ] Description for the @return value is missing
  86 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  88 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  88 | ERROR   | [x] Short array syntax must be used to define arrays
  89 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  91 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  92 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  93 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  95 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  95 | ERROR   | [x] Short array syntax must be used to define arrays
  96 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  97 | ERROR   | [x] Line indented incorrectly; expected 6 spaces,
     |         |     found 8
  98 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 100 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 101 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 103 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 103 | ERROR   | [ ] Missing short description in doc comment
 104 | ERROR   | [ ] Description for the @return value is missing
 106 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 108 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 110 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 111 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 112 | ERROR   | [x] Line indented incorrectly; expected 6 spaces,
     |         |     found 8
 113 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 115 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 116 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 118 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 118 | ERROR   | [ ] Missing short description in doc comment
 119 | ERROR   | [ ] Description for the @return value is missing
 119 | ERROR   | [x] Data types in @return tags need to be fully
     |         |     namespaced
 121 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 123 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 124 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 126 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
 127 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 127 | ERROR   | [x] Expected 1 blank line after function; 0 found
 128 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 128 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
     |         |     found 2
 128 | ERROR   | [x] The closing brace for the class must have an
     |         |     empty line before it
----------------------------------------------------------------------
PHPCBF CAN FIX THE 78 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...ch_api_stats_block/src/Plugin/Derivative/SearchApiStatsBlock.php
----------------------------------------------------------------------
FOUND 44 ERRORS AND 1 WARNING AFFECTING 34 LINES
----------------------------------------------------------------------
  5 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
  6 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
  7 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
  8 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
  9 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
 11 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
 16 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
 16 | ERROR   | [x] Expected 1 space before implements keyword; 2
    |         |     found
 16 | ERROR   | [x] Expected 1 space before opening brace; found 2
 18 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 23 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 23 | ERROR   | [x] Short array syntax must be used to define arrays
 25 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 30 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 32 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 37 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 39 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 42 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 44 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 44 | ERROR   | [x] Data types in @var tags need to be fully
    |         |     namespaced
 45 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 46 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 47 | ERROR   | [x] Line indented incorrectly; expected 6 spaces,
    |         |     found 8
 48 | ERROR   | [x] Line indented incorrectly; expected 6 spaces,
    |         |     found 8
 48 | ERROR   | [x] Expected 1 space after "="; 2 found
 48 | ERROR   | [x] Concat operator must be surrounded by a single
    |         |     space
 48 | WARNING | [ ] Do not concatenate strings to translatable
    |         |     strings, they should be part of the t() argument
    |         |     and you should use placeholders
 48 | ERROR   | [x] Concat operator must be surrounded by a single
    |         |     space
 49 | ERROR   | [x] Line indented incorrectly; expected 6 spaces,
    |         |     found 8
 49 | ERROR   | [x] Short array syntax must be used to define arrays
 50 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 52 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 53 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 55 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 63 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 64 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 65 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 66 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 68 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 71 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 72 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
    |         |     found 6
 76 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
    |         |     found 4
 76 | ERROR   | [x] Expected 1 blank line after function; 0 found
 77 | ERROR   | [x] Line indented incorrectly; expected 0 spaces,
    |         |     found 2
 77 | ERROR   | [x] The closing brace for the class must have an
    |         |     empty line before it
----------------------------------------------------------------------
PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/search_api_stats.install
----------------------------------------------------------------------
FOUND 22 ERRORS AFFECTING 22 LINES
----------------------------------------------------------------------
   1 | ERROR | [x] Missing file doc comment
   6 | ERROR | [ ] Empty installation hooks are not necessary
  13 | ERROR | [ ] Empty installation hooks are not necessary
  21 | ERROR | [x] Short array syntax must be used to define arrays
  23 | ERROR | [x] Short array syntax must be used to define arrays
  24 | ERROR | [x] Short array syntax must be used to define arrays
  29 | ERROR | [x] Short array syntax must be used to define arrays
  35 | ERROR | [x] Short array syntax must be used to define arrays
  41 | ERROR | [x] Short array syntax must be used to define arrays
  47 | ERROR | [x] Short array syntax must be used to define arrays
  53 | ERROR | [x] Short array syntax must be used to define arrays
  59 | ERROR | [x] Short array syntax must be used to define arrays
  65 | ERROR | [x] Short array syntax must be used to define arrays
  71 | ERROR | [x] Short array syntax must be used to define arrays
  77 | ERROR | [x] Short array syntax must be used to define arrays
  84 | ERROR | [x] Short array syntax must be used to define arrays
  90 | ERROR | [x] Short array syntax must be used to define arrays
  97 | ERROR | [x] Short array syntax must be used to define arrays
 104 | ERROR | [x] Short array syntax must be used to define arrays
 110 | ERROR | [x] Short array syntax must be used to define arrays
 116 | ERROR | [x] Short array syntax must be used to define arrays
 124 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 20 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/search_api_stats.module
----------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one
    |         |     blank line
  1 | ERROR   | [x] Missing file doc comment
  3 | ERROR   | [x] There must be one blank line after the last USE
    |         |     statement; 0 found;
 12 | ERROR   | [x] Expected 1 blank line before function; 0 found
 28 | ERROR   | [x] No space found before comment text; expected "//
    |         |     to avoid to insert empty keywords value into
    |         |     database." but found "//to avoid to insert empty
    |         |     keywords value into database."
 28 | ERROR   | [x] Inline comments must start with a capital letter
 31 | ERROR   | [x] Short array syntax must be used to define arrays
 40 | WARNING | [x] A comma should follow the last multiline array
    |         |     item. Found: )
 47 | 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."
 50 | ERROR   | [x] Short array syntax must be used to define arrays
 52 | ERROR   | [x] Expected one space after the comma, 0 found
 54 | ERROR   | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /app/search_api_stats.permissions.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 3 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

I also discovered that the Drupal 8 codebase includes the Drupal 7 module.

Comments

mandclu created an issue. See original summary.

  • mandclu committed f77b271 on 8.x-1.x
    Issue #3212123 by mandclu: Code Standards Violations
    
mandclu’s picture

Issue summary: View changes
Status: Active » Fixed

Merged in a large number of code style fixes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.