Problem/Motivation

Create this issue to fix the Code Standard problems using PHPCBF. As PHPCS shows a lot of problems, another issue will be created to fix the rest of the code standard problems after PHPCBF fixed the problems.

After run phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml context, it shows code standard errors bellow:

FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Entity/Context.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------
  92 | ERROR | [x] Data types in @var tags need to be fully namespaced
  99 | ERROR | [x] Data types in @var tags need to be fully namespaced
 133 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 255 | ERROR | [x] Expected 1 space after "="; 2 found
 375 | ERROR | [x] Expected 1 blank line after function; 0 found
 376 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Entity/ContextAccess.php
---------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------
  3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 28 | WARNING | [ ] Possible useless method overriding detected
 42 | WARNING | [ ] Possible useless method overriding detected
 44 | ERROR   | [x] Expected 1 blank line after function; 0 found
 45 | ERROR   | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextManager.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 39 ERRORS AND 1 WARNING AFFECTING 31 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  20 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  27 | ERROR   | [ ] Missing short description in doc comment
  32 | ERROR   | [ ] Missing short description in doc comment
  37 | ERROR   | [ ] Missing short description in doc comment
  44 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  56 | ERROR   | [ ] Missing short description in doc comment
  61 | ERROR   | [ ] Missing short description in doc comment
  62 | ERROR   | [x] Expected "\Drupal\Core\Theme\ThemeManagerInterface" but found "\Drupal\Core\Theme\ThemeManagerInterface;" for @var tag in member variable comment
  71 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  71 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  73 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  73 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  75 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  77 | ERROR   | [ ] Doc comment for parameter $entityFormBuilder does not match actual variable name <undefined>
  77 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  87 | ERROR   | [x] Opening brace should be on the same line as the declaration
  87 | ERROR   | [x] The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
  98 | ERROR   | [ ] Description for the @return value is missing
  98 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 112 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 114 | ERROR   | [ ] Description for the @return value is missing
 141 | ERROR   | [ ] Description for the @return value is missing
 152 | ERROR   | [ ] Description for the @return value is missing
 161 | ERROR   | [ ] Description for the @return value is missing
 194 | ERROR   | [ ] Description for the @return value is missing
 194 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 205 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
 246 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 249 | ERROR   | [ ] Description for the @return value is missing
 278 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 281 | ERROR   | [ ] Description for the @return value is missing
 302 | ERROR   | [x] There must be exactly one blank line before the tags in a doc comment
 302 | ERROR   | [ ] Missing parameter comment
 303 | ERROR   | [ ] Missing parameter comment
 304 | ERROR   | [ ] Missing parameter comment
 305 | ERROR   | [x] Separate the @param and @return sections by a blank line.
 305 | ERROR   | [ ] Description for the @return value is missing
 316 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 319 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 319 | ERROR   | [x] Data types in @param tags need to be fully namespaced
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextInterface.php
-----------------------------------------------------------------------------------------------------------
FOUND 26 ERRORS AND 3 WARNINGS AFFECTING 27 LINES
-----------------------------------------------------------------------------------------------------------
   5 | WARNING | [x] Unused use statement
   6 | WARNING | [x] Unused use statement
   8 | WARNING | [x] Unused use statement
  11 | ERROR   | [x] Missing interface doc comment
  21 | ERROR   | [ ] Description for the @return value is missing
  28 | ERROR   | [ ] Description for the @return value is missing
  35 | ERROR   | [ ] Missing parameter comment
  44 | ERROR   | [ ] Description for the @return value is missing
  51 | ERROR   | [ ] Missing parameter comment
  60 | ERROR   | [ ] Description for the @return value is missing
  67 | ERROR   | [ ] Missing parameter comment
  76 | ERROR   | [ ] Description for the @return value is missing
  83 | ERROR   | [ ] Missing parameter comment
  92 | ERROR   | [ ] Description for the @return value is missing
 109 | ERROR   | [x] Expected "bool" but found "boolean" for function return type
 109 | ERROR   | [ ] Description for the @return value is missing
 126 | ERROR   | [ ] Description for the @return value is missing
 126 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 134 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
 136 | ERROR   | [ ] Description for the @return value is missing
 146 | ERROR   | [ ] Description for the @return value is missing
 166 | ERROR   | [ ] Description for the @return value is missing
 173 | ERROR   | [ ] Description for the @return value is missing
 183 | ERROR   | [ ] Description for the @return value is missing
 190 | ERROR   | [ ] Missing parameter comment
 192 | ERROR   | [ ] Description for the @return value is missing
 212 | ERROR   | [ ] Description for the @return value is missing
 214 | ERROR   | [x] Expected 1 blank line after function; 0 found
 215 | ERROR   | [x] The closing brace for the interface must have an empty line before it
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextReactionManager.php
-----------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
 10 | ERROR   | [x] Missing class doc comment
 20 | ERROR   | [x] Expected 1 blank line after function; 0 found
 21 | ERROR   | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 23 | ERROR | [ ] Missing short description in doc comment
 28 | ERROR | [ ] Missing short description in doc comment
 29 | ERROR | [ ] Missing parameter comment
 31 | ERROR | [x] Visibility must be declared on method "__construct"
 55 | ERROR | [x] Visibility must be declared on method "getSubscribedEvents"
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextMenuActiveTrail.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
 10 | WARNING | [x] Unused use statement
 17 | ERROR   | [ ] Missing short description in doc comment
 18 | ERROR   | [x] Expected "\Drupal\context\ContextManager" but found "\Drupal\context\ContextManager." for @var tag in member variable comment
 28 | ERROR   | [x] Expected 1 blank line after function; 2 found
 38 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/DisplayVariant/ContextBlockPageVariant.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------------------------
  26 | ERROR   | [ ] Missing short description in doc comment
  27 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  45 | ERROR   | [ ] Missing short description in doc comment
  46 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  56 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  59 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  62 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  62 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  65 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  65 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 122 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/Condition/ViewInclusion.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 30 ERRORS AFFECTING 27 LINES
-------------------------------------------------------------------------------------------------------------------------
   1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  24 | ERROR | [ ] Missing member variable doc comment
  26 | ERROR | [ ] Missing member variable doc comment
  28 | ERROR | [ ] Parameter $currentRouteMatch is not described in comment
  31 | ERROR | [ ] Missing parameter comment
  32 | ERROR | [ ] Missing parameter comment
  32 | ERROR | [ ] Missing parameter type
  33 | ERROR | [ ] Missing parameter comment
  33 | ERROR | [ ] Missing parameter type
  34 | ERROR | [ ] Missing parameter comment
  35 | ERROR | [ ] Missing parameter comment
  35 | ERROR | [ ] Missing parameter name
  43 | ERROR | [ ] Missing short description in doc comment
  44 | ERROR | [ ] Missing parameter comment
  45 | ERROR | [ ] Missing parameter comment
  46 | ERROR | [ ] Missing parameter comment
  47 | ERROR | [ ] Missing parameter comment
  61 | ERROR | [ ] Missing short description in doc comment
  62 | ERROR | [ ] Missing parameter comment
  63 | ERROR | [ ] Missing parameter comment
  65 | ERROR | [ ] Description for the @return value is missing
  93 | ERROR | [ ] Missing short description in doc comment
  94 | ERROR | [ ] Missing parameter comment
  95 | ERROR | [ ] Missing parameter comment
 102 | ERROR | [ ] Missing short description in doc comment
 103 | ERROR | [ ] Description for the @return value is missing
 109 | ERROR | [ ] Missing short description in doc comment
 110 | ERROR | [ ] Description for the @return value is missing
 121 | ERROR | [x] Expected 1 blank line after function; 0 found
 122 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/Condition/RequestPathExclusion.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
 37 | ERROR | [x] Expected 1 blank line after function; 0 found
 38 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReactionPluginCollection.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------
  7 | ERROR   | [x] Missing class doc comment
 12 | ERROR   | [ ] Description for the @return value is missing
 14 | WARNING | [ ] Possible useless method overriding detected
 16 | ERROR   | [x] Expected 1 blank line after function; 0 found
 17 | ERROR   | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/Regions.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
   7 | WARNING | [x] Unused use statement
  30 | ERROR   | [ ] Missing short description in doc comment
  35 | ERROR   | [ ] Missing short description in doc comment
  43 | ERROR   | [x] Visibility must be declared on method "__construct"
 153 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 156 | ERROR   | [ ] Description for the @return value is missing
 170 | ERROR   | [x] Expected 1 blank line after function; 0 found
 171 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/Theme.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------
   1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
  21 | ERROR | [ ] Missing short description in doc comment
  26 | ERROR | [ ] Missing short description in doc comment
  34 | ERROR | [x] Visibility must be declared on method "__construct"
 104 | ERROR | [x] Expected 1 blank line after function; 0 found
 105 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/Menu.php
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------
  8 | WARNING | [x] Unused use statement
 20 | ERROR   | [x] Expected 1 space before opening brace; found 2
 22 | ERROR   | [ ] Missing short description in doc comment
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/PageTemplateSuggestions.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
 54 | ERROR | [x] Expected 1 blank line after function; 0 found
 55 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/Blocks.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 45 ERRORS AND 3 WARNINGS AFFECTING 41 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  35 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  42 | ERROR   | [x] Expected 1 space before opening brace; found 0
  60 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  71 | ERROR   | [ ] Missing short description in doc comment
  76 | ERROR   | [ ] Missing short description in doc comment
  81 | ERROR   | [ ] Missing short description in doc comment
  82 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  86 | ERROR   | [ ] Missing short description in doc comment
  91 | ERROR   | [ ] Missing short description in doc comment
  92 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  96 | ERROR   | [ ] Missing short description in doc comment
  97 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 101 | ERROR   | [ ] Missing short description in doc comment
 102 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 109 | ERROR   | [x] Visibility must be declared on method "__construct"
 159 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 162 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 165 | ERROR   | [ ] Description for the @return value is missing
 246 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
 273 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 302 | ERROR   | [ ] Missing parameter comment
 302 | ERROR   | [x] Tag value indented incorrectly; expected 1 space but found 2
 303 | ERROR   | [x] Separate the @param and @return sections by a blank line.
 303 | ERROR   | [ ] Description for the @return value is missing
 305 | ERROR   | [ ] Type hint "array" missing for $build
 343 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 379 | ERROR   | [ ] Description for the @return value is missing
 379 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 395 | ERROR   | [ ] Description for the @return value is missing
 395 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 404 | ERROR   | [ ] Missing parameter comment
 420 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 420 | ERROR   | [ ] Missing parameter type
 433 | ERROR   | [ ] Missing short description in doc comment
 434 | ERROR   | [ ] Missing parameter comment
 434 | ERROR   | [ ] Missing parameter type
 493 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 499 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 500 | ERROR   | [x] Array closing indentation error, expected 6 spaces but found 8
 575 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 587 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 662 | ERROR   | [ ] Missing parameter comment
 662 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 664 | ERROR   | [ ] Description for the @return value is missing
 703 | ERROR   | [ ] Description for the @return value is missing
 716 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 719 | ERROR   | [ ] Description for the @return value is missing
 742 | ERROR   | [x] Opening brace should be on the same line as the declaration
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Plugin/ContextReaction/PageTitle.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
 54 | ERROR | [x] Expected 1 blank line after function; 0 found
 55 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextReactionInterface.php
-------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Missing interface doc comment
 15 | ERROR | [ ] Description for the @return value is missing
 22 | ERROR | [ ] Description for the @return value is missing
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/ContextReactionFormBase.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 2 WARNINGS AFFECTING 14 LINES
---------------------------------------------------------------------------------------------------------------------------
  6 | WARNING | [x] Unused use statement
 10 | ERROR   | [x] Missing class doc comment
 12 | ERROR   | [ ] Missing short description in doc comment
 13 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 17 | ERROR   | [ ] Missing short description in doc comment
 18 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 28 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 31 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 34 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 34 | ERROR   | [ ] Missing parameter type
 37 | ERROR   | [ ] Return type "array The form structure." must not contain spaces
 38 | ERROR   | [x] Return comment indentation must be 3 spaces, found 1 spaces
 49 | WARNING | [x] A comma should follow the last multiline array item. Found: 'actions'
 66 | ERROR   | [x] Expected 1 blank line after function; 0 found
 67 | 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: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Annotation/ContextReaction.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 15 | ERROR | [x] Doc comment long description must end with a full stop
 33 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
 44 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
 44 | ERROR | [x] Expected "\Drupal\Core\Annotation\Translationoptional" but found "\Drupal\Core\Annotation\Translation (optional)" for @var tag in member variable comment
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/BlockCollection.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] Missing class doc comment
 13 | ERROR   | [ ] Description for the @return value is missing
 13 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 15 | WARNING | [ ] Possible useless method overriding detected
 21 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 26 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 33 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 68 | ERROR   | [x] Expected 1 blank line after function; 0 found
 69 | 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: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/Controller/ContextReactionBlocksController.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 1 WARNING AFFECTING 18 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
   9 | WARNING | [x] Unused use statement
  19 | ERROR   | [x] Missing class doc comment
  21 | ERROR   | [ ] Missing short description in doc comment
  26 | ERROR   | [ ] Missing short description in doc comment
  31 | ERROR   | [ ] Missing short description in doc comment
  36 | ERROR   | [ ] Missing short description in doc comment
  44 | ERROR   | [ ] Missing parameter comment
  45 | ERROR   | [ ] Missing parameter comment
  46 | ERROR   | [ ] Missing parameter comment
  47 | ERROR   | [ ] Missing parameter comment
  49 | ERROR   | [x] Visibility must be declared on method "__construct"
  77 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
  79 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  82 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  86 | ERROR   | [ ] Description for the @return value is missing
 183 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 186 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 186 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 189 | ERROR   | [ ] Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/Form/BlockDeleteForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 3 WARNINGS AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------------------
   7 | WARNING | [x] Unused use statement
  11 | WARNING | [x] Unused use statement
  16 | ERROR   | [x] Missing class doc comment
  21 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  28 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  35 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  49 | ERROR   | [ ] Missing parameter comment
  49 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  59 | ERROR   | [x] Space before opening parenthesis of function call prohibited
 108 | WARNING | [x] A comma should follow the last multiline array item. Found: '::submitFormAjax'
 128 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 128 | ERROR   | [x] Closing parenthesis of array declaration must be on a new line
 138 | ERROR   | [ ] Description for the @return value is missing
 138 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 149 | ERROR   | [x] Expected 1 blank line after function; 0 found
 150 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/Form/BlockAddForm.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
 5 | WARNING | [x] Unused use statement
 7 | ERROR   | [x] Missing class doc comment
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/Form/BlockEditForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Missing class doc comment
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Reaction/Blocks/Form/BlockFormBase.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 41 ERRORS AND 2 WARNINGS AFFECTING 32 LINES
---------------------------------------------------------------------------------------------------------------------------------
  23 | WARNING | [x] Unused use statement
  28 | ERROR   | [x] Missing class doc comment
  42 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  60 | ERROR   | [ ] Missing short description in doc comment
  65 | ERROR   | [ ] Missing short description in doc comment
  70 | ERROR   | [ ] Missing short description in doc comment
  75 | ERROR   | [ ] Missing short description in doc comment
  80 | ERROR   | [ ] Missing short description in doc comment
  85 | ERROR   | [ ] Missing short description in doc comment
  96 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  96 | ERROR   | [ ] Missing parameter comment
  98 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  98 | ERROR   | [ ] Missing parameter comment
  99 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  99 | ERROR   | [ ] Missing parameter comment
 100 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 100 | ERROR   | [ ] Missing parameter comment
 101 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 101 | ERROR   | [ ] Missing parameter comment
 102 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 102 | ERROR   | [ ] Missing parameter comment
 113 | ERROR   | [x] Opening brace should be on the same line as the declaration
 113 | ERROR   | [x] The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
 152 | ERROR   | [ ] Description for the @return value is missing
 152 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 162 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 165 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 165 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 168 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 171 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 174 | ERROR   | [ ] Description for the @return value is missing
 186 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 246 | WARNING | [x] A comma should follow the last multiline array item. Found: '::submitFormAjax'
 267 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 289 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 318 | ERROR   | [x] Expected newline after closing brace
 332 | ERROR   | [ ] Description for the @return value is missing
 332 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 341 | ERROR   | [x] Space after closing parenthesis of function call prohibited
 341 | ERROR   | [x] Space found before semicolon; expected ");" but found ") ;"
 362 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 365 | ERROR   | [ ] Description for the @return value is missing
 377 | ERROR   | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/ContextReactionPluginBase.php
--------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------
  8 | ERROR | [x] Missing class doc comment
 67 | ERROR | [x] Expected 1 blank line after function; 0 found
 68 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/src/Form/AjaxFormTrait.php
----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------
  3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
 15 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 22 | ERROR | [ ] Description for the @return value is missing
 37 | ERROR | [ ] Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/MenuBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 16 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  12 | ERROR | [x] Doc comment short description must end with a full stop
  12 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  18 | ERROR | [ ] Missing short description in doc comment
  19 | ERROR | [x] Expected "\Drupal\Core\Menu\MenuLinkManagerInterfaceStoresthemenuLinkManagerinterface" but found "\Drupal\Core\Menu\MenuLinkManagerInterface Stores the menuLinkManager interface."
     |       |     for @var tag in member variable comment
  26 | ERROR | [ ] Missing parameter comment
  34 | ERROR | [x] Doc comment short description must be on the first line
  35 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
  35 | ERROR | [ ] Missing parameter comment
  47 | ERROR | [x] Doc comment short description must be on the first line
  49 | ERROR | [x] Parameter comment must be on the next line
  66 | ERROR | [x] Doc comment short description must be on the first line
  68 | ERROR | [x] Parameter comment must be on the next line
  91 | ERROR | [x] Doc comment short description must be on the first line
  93 | ERROR | [x] Parameter comment must be on the next line
 110 | ERROR | [x] Doc comment short description must be on the first line
 112 | ERROR | [x] Parameter comment must be on the next line
 114 | ERROR | [ ] Description for the @return value must be on the next line
 121 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/ContextListBuilder.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------------------------------
   5 | WARNING | [x] Unused use statement
  19 | ERROR   | [x] Missing class doc comment
  26 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  26 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  30 | ERROR   | [ ] Missing short description in doc comment
  31 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  48 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  51 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  54 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  57 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 171 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 171 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 187 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 257 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 257 | ERROR   | [x] Data types in @var tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Controller/ContextUIController.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 6 WARNINGS AFFECTING 30 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  19 | WARNING | [x] Unused use statement
  23 | ERROR   | [x] Missing class doc comment
  28 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  35 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  42 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  49 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  52 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  52 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  55 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  55 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  58 | ERROR   | [x] Visibility must be declared on method "__construct"
  82 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  85 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 115 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 118 | ERROR   | [ ] Description for the @return value is missing
 126 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 166 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 190 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 191 | ERROR   | [x] Parameter comment must end with a full stop
 193 | ERROR   | [ ] Description for the @return value is missing
 201 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 265 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 268 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 268 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 271 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 271 | ERROR   | [ ] Missing parameter type
 274 | ERROR   | [ ] Description for the @return value is missing
 274 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 290 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 331 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 334 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 334 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 337 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 337 | ERROR   | [ ] Missing parameter type
 340 | ERROR   | [ ] Description for the @return value is missing
 340 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 356 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
 364 | ERROR   | [x] Whitespace found at end of line
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ContextFormBase.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------------------------------------------
  14 | ERROR | [x] Missing class doc comment
  26 | ERROR | [x] Data types in @var tags need to be fully namespaced
  26 | ERROR | [x] Data types in @var tags need to be fully namespaced
  33 | ERROR | [x] Data types in @var tags need to be fully namespaced
  33 | ERROR | [x] Data types in @var tags need to be fully namespaced
  40 | ERROR | [ ] Missing parameter comment
  40 | ERROR | [x] Data types in @param tags need to be fully namespaced
  40 | ERROR | [x] Data types in @param tags need to be fully namespaced
  41 | ERROR | [ ] Missing parameter comment
  41 | ERROR | [x] Data types in @param tags need to be fully namespaced
  41 | ERROR | [x] Data types in @param tags need to be fully namespaced
  43 | ERROR | [x] Visibility must be declared on method "__construct"
 146 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 146 | ERROR | [x] Data types in @param tags need to be fully namespaced
 146 | ERROR | [x] Data types in @param tags need to be fully namespaced
 174 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 174 | ERROR | [x] Data types in @param tags need to be fully namespaced
 174 | ERROR | [x] Data types in @param tags need to be fully namespaced
 196 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 196 | ERROR | [x] Data types in @param tags need to be fully namespaced
 196 | ERROR | [x] Data types in @param tags need to be fully namespaced
 241 | ERROR | [ ] Description for the @return value is missing
 245 | ERROR | [x] Expected 1 blank line after function; 0 found
 246 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ReactionDeleteForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 13 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  11 | WARNING | [x] Unused use statement
  16 | ERROR   | [x] Missing class doc comment
  18 | ERROR   | [ ] Missing short description in doc comment
  19 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  23 | ERROR   | [ ] Missing short description in doc comment
  24 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  31 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  38 | ERROR   | [ ] Missing parameter comment
  38 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  40 | ERROR   | [x] Visibility must be declared on method "__construct"
 121 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 121 | ERROR   | [x] Closing parenthesis of array declaration must be on a new line
 131 | ERROR   | [ ] Description for the @return value is missing
 131 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 142 | ERROR   | [x] Expected 1 blank line after function; 0 found
 143 | ERROR   | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ContextDeleteForm.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------
 11 | ERROR | [x] Missing class doc comment
 13 | ERROR | [ ] Missing short description in doc comment
 14 | ERROR | [x] Data types in @var tags need to be fully namespaced
 18 | ERROR | [ ] Missing short description in doc comment
 19 | ERROR | [ ] Missing parameter comment
 19 | ERROR | [x] Data types in @param tags need to be fully namespaced
 21 | ERROR | [x] Visibility must be declared on method "__construct"
 64 | ERROR | [x] Expected 1 blank line after function; 2 found
 78 | ERROR | [x] Expected 1 blank line after function; 0 found
 79 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ConditionDeleteForm.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------
  14 | ERROR   | [x] Missing class doc comment
  40 | ERROR   | [ ] Missing parameter comment
  40 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  50 | ERROR   | [x] Space before opening parenthesis of function call prohibited
 103 | WARNING | [x] A comma should follow the last multiline array item. Found: '::submitFormAjax'
 119 | ERROR   | [x] Array indentation error, expected 8 spaces but found 10
 119 | ERROR   | [x] Closing parenthesis of array declaration must be on a new line
 129 | ERROR   | [ ] Description for the @return value is missing
 129 | ERROR   | [x] Data types in @return tags need to be fully namespaced
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ContextDisableForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
 11 | ERROR | [x] Missing class doc comment
 13 | ERROR | [ ] Missing short description in doc comment
 18 | ERROR | [ ] Missing short description in doc comment
 19 | ERROR | [ ] Missing parameter comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ContextAddForm.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Missing class doc comment
 29 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/src/Form/ContextEditForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 4 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------------------------------------
  11 | ERROR   | [x] Missing class doc comment
  75 | ERROR   | [ ] Missing parameter type
  78 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
  78 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  78 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  81 | ERROR   | [ ] Description for the @return value is missing
  94 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--small'
 134 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--small'
 150 | ERROR   | [ ] Missing parameter type
 153 | ERROR   | [ ] Parameter tags must be grouped together in a doc comment
 153 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 153 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 156 | ERROR   | [ ] Description for the @return value is missing
 169 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--small'
 212 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--small'
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/context_ui.services.yml
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
 4 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/modules/context_ui/context_ui.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
  3 | ERROR | [x] Missing function doc comment
  7 | ERROR | [x] Missing function doc comment
 11 | ERROR | [x] Missing function doc comment
 13 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/context.install
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------
 11 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 31 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 37 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------


FILE: /home/paulocs/AmbienteTeste/Drupal9.0/drupal9-stable/modules/contrib/context/context.module
-------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Missing file doc comment
 15 | ERROR | [x] Concat operator must be surrounded by a single space
 15 | ERROR | [x] Concat operator must be surrounded by a single space
 16 | ERROR | [x] Concat operator must be surrounded by a single space
 16 | ERROR | [x] Concat operator must be surrounded by a single space
 22 | ERROR | [x] Expected 1 space between double arrow and "'https://www.drupal.org/developing/api/8/plugins'"; 0 found
 22 | ERROR | [x] Expected 1 space after "=>"; 0 found
 32 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Proposed resolution

Run phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml context/ and fix problems.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paulocs created an issue. See original summary.

paulocs’s picture

Title: Fix Drupal Code Standards using php » Fix Drupal Code Standards using phpcbf
Status: Needs work » Needs review
FileSize
63.29 KB

Follow a patch.

  • paulocs committed cacdeb6 on 8.x-4.x
    Issue #3161742 by paulocs: Fix Drupal Code Standards using phpcbf
    
paulocs’s picture

Status: Needs review » Fixed

Fixed in dev branch.

paulocs’s picture

Status: Fixed » Closed (fixed)

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