Fix the issues reported by phpcs

Created on 13 May 2020, over 4 years ago
Updated 29 August 2024, 3 months ago

Problem/Motivation

FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Form/SettingsForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
---------------------------------------------------------------------------------------------------------------
  6 | ERROR   | [x] There must be one blank line after the last USE statement; 2 found;
  9 | ERROR   | [x] Missing class doc comment
 23 | WARNING | [x] A comma should follow the last multiline array item. Found: 'permissions_by_term.settings'
 45 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
 54 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
 85 | ERROR   | [x] Object operator not indented correctly; expected 6 spaces but found 8
 87 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 91 | ERROR   | [x] Object operator not indented correctly; expected 6 spaces but found 8
 93 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Listener/KernelEventListener.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AFFECTING 19 LINES
-------------------------------------------------------------------------------------------------------------------------------
  29 | ERROR | [x] Opening brace should be on the same line as the declaration
  31 | ERROR | [ ] Missing short description in doc comment
  32 | ERROR | [x] Data types in @var tags need to be fully namespaced
  36 | ERROR | [ ] Missing short description in doc comment
  37 | ERROR | [x] Data types in @var tags need to be fully namespaced
  37 | ERROR | [x] Data types in @var tags need to be fully namespaced
  41 | ERROR | [ ] Missing short description in doc comment
  42 | ERROR | [x] Data types in @var tags need to be fully namespaced
  46 | ERROR | [ ] Missing short description in doc comment
  47 | ERROR | [x] Data types in @var tags need to be fully namespaced
  50 | ERROR | [ ] Missing short description in doc comment
  51 | ERROR | [x] Data types in @var tags need to be fully namespaced
  55 | ERROR | [ ] Missing short description in doc comment
  60 | ERROR | [x] Missing function doc comment
  68 | ERROR | [x] Opening brace should be on the same line as the declaration
  68 | ERROR | [x] The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
 145 | ERROR | [x] Missing function doc comment
 155 | ERROR | [x] Missing function doc comment
 167 | ERROR | [x] Missing function doc comment
 171 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 184 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Factory/NodeAccessRecordFactory.php
-----------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Missing class doc comment
  9 | ERROR | [x] Missing function doc comment
  9 | ERROR | [ ] Arguments with default values must be at the end of the argument list
 10 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 10 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 25 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Controller/NodeEntityBundleController.php
-----------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 2 WARNINGS AFFECTING 14 LINES
-----------------------------------------------------------------------------------------------------------------
 12 | ERROR   | [x] Doc comment short description must end with a full stop
 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
 28 | ERROR   | [x] Missing function doc comment
 43 | ERROR   | [ ] Missing short description in doc comment
 44 | ERROR   | [ ] Missing parameter comment
 46 | ERROR   | [ ] Description for the @return value is missing
 46 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 62 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 67 | ERROR   | [ ] Missing short description in doc comment
 68 | ERROR   | [ ] Description for the @return value is missing
 68 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 87 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 92 | ERROR   | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Controller/PermissionsByTermController.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 17 | ERROR | [x] Data types in @return tags need to be fully namespaced
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Cache/AccessResultCache.php
---------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------
  7 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
 10 | ERROR | [x] Missing class doc comment
 19 | ERROR | [x] Missing function doc comment
 23 | ERROR | [x] Missing function doc comment
 41 | ERROR | [x] Missing function doc comment
 61 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Cache/CacheInvalidator.php
----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------
  7 | ERROR   | [x] Missing class doc comment
  9 | ERROR   | [ ] Missing short description in doc comment
 10 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 14 | ERROR   | [x] Missing function doc comment
 18 | ERROR   | [x] Missing function doc comment
 22 | WARNING | [x] A comma should follow the last multiline array item. Found: 'permissions_by_term:key_value_cache'
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Cache/KeyValueCache.php
-----------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------
  3 | ERROR | [x] There must be one blank line after the namespace declaration
  7 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
 10 | ERROR | [x] Missing class doc comment
 19 | ERROR | [x] Missing function doc comment
 23 | ERROR | [x] Missing function doc comment
 38 | ERROR | [x] Missing function doc comment
 58 | ERROR | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Entity/Config/Settings.php
--------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------
 47 | ERROR | Missing short description in doc comment
 52 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Model/NodeAccessRecordModel.php
--------------------------------------------------------------------------------------------------------------------
FOUND 69 ERRORS AFFECTING 69 LINES
--------------------------------------------------------------------------------------------------------------------
   5 | ERROR | [x] Missing class doc comment
   7 | ERROR | [ ] Missing short description in doc comment
   8 | ERROR | [x] Do not append variable name "$nid" to the type declaration in a member variable comment
  12 | ERROR | [ ] Missing short description in doc comment
  13 | ERROR | [x] Do not append variable name "$langcode" to the type declaration in a member variable comment
  17 | ERROR | [ ] Missing short description in doc comment
  18 | ERROR | [x] Do not append variable name "$fallback" to the type declaration in a member variable comment
  22 | ERROR | [ ] Missing short description in doc comment
  23 | ERROR | [x] Do not append variable name "$gid" to the type declaration in a member variable comment
  27 | ERROR | [ ] Missing short description in doc comment
  28 | ERROR | [x] Do not append variable name "$realm" to the type declaration in a member variable comment
  32 | ERROR | [ ] Missing short description in doc comment
  33 | ERROR | [x] Do not append variable name "$grant_view" to the type declaration in a member variable comment
  35 | ERROR | [ ] Class property $grant_view should use lowerCamel naming without underscores
  37 | ERROR | [ ] Missing short description in doc comment
  38 | ERROR | [x] Do not append variable name "$grant_update" to the type declaration in a member variable comment
  40 | ERROR | [ ] Class property $grant_update should use lowerCamel naming without underscores
  42 | ERROR | [ ] Missing short description in doc comment
  43 | ERROR | [x] Do not append variable name "$grant_delete" to the type declaration in a member variable comment
  45 | ERROR | [ ] Class property $grant_delete should use lowerCamel naming without underscores
  47 | ERROR | [ ] Missing short description in doc comment
  48 | ERROR | [ ] Description for the @return value is missing
  51 | ERROR | [x] Opening brace should be on the same line as the declaration
  55 | ERROR | [ ] Missing short description in doc comment
  56 | ERROR | [ ] Missing parameter comment
  59 | ERROR | [x] Opening brace should be on the same line as the declaration
  63 | ERROR | [ ] Missing short description in doc comment
  64 | ERROR | [ ] Description for the @return value is missing
  67 | ERROR | [x] Opening brace should be on the same line as the declaration
  71 | ERROR | [ ] Missing short description in doc comment
  72 | ERROR | [ ] Missing parameter comment
  75 | ERROR | [x] Opening brace should be on the same line as the declaration
  79 | ERROR | [ ] Missing short description in doc comment
  80 | ERROR | [ ] Description for the @return value is missing
  83 | ERROR | [x] Opening brace should be on the same line as the declaration
  87 | ERROR | [ ] Missing short description in doc comment
  88 | ERROR | [ ] Missing parameter comment
  91 | ERROR | [x] Opening brace should be on the same line as the declaration
  95 | ERROR | [ ] Missing short description in doc comment
  96 | ERROR | [ ] Description for the @return value is missing
  99 | ERROR | [x] Opening brace should be on the same line as the declaration
 103 | ERROR | [ ] Missing short description in doc comment
 104 | ERROR | [ ] Missing parameter comment
 107 | ERROR | [x] Opening brace should be on the same line as the declaration
 111 | ERROR | [ ] Missing short description in doc comment
 112 | ERROR | [ ] Description for the @return value is missing
 115 | ERROR | [x] Opening brace should be on the same line as the declaration
 119 | ERROR | [ ] Missing short description in doc comment
 120 | ERROR | [ ] Missing parameter comment
 123 | ERROR | [x] Opening brace should be on the same line as the declaration
 127 | ERROR | [ ] Missing short description in doc comment
 128 | ERROR | [ ] Description for the @return value is missing
 131 | ERROR | [x] Opening brace should be on the same line as the declaration
 135 | ERROR | [ ] Missing short description in doc comment
 136 | ERROR | [ ] Missing parameter comment
 139 | ERROR | [x] Opening brace should be on the same line as the declaration
 143 | ERROR | [ ] Missing short description in doc comment
 144 | ERROR | [ ] Description for the @return value is missing
 147 | ERROR | [x] Opening brace should be on the same line as the declaration
 151 | ERROR | [ ] Missing short description in doc comment
 152 | ERROR | [ ] Missing parameter comment
 155 | ERROR | [x] Opening brace should be on the same line as the declaration
 159 | ERROR | [ ] Missing short description in doc comment
 160 | ERROR | [ ] Description for the @return value is missing
 163 | ERROR | [x] Opening brace should be on the same line as the declaration
 167 | ERROR | [ ] Missing short description in doc comment
 168 | ERROR | [ ] Missing parameter comment
 171 | ERROR | [x] Opening brace should be on the same line as the declaration
 175 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Model/NidToTidsModel.php
------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
------------------------------------------------------------------------------------------------
  5 | ERROR | [x] Missing class doc comment
  7 | ERROR | [ ] Missing short description in doc comment
 12 | ERROR | [ ] Missing short description in doc comment
 17 | ERROR | [ ] Missing short description in doc comment
 18 | ERROR | [ ] Description for the @return value is missing
 24 | ERROR | [ ] Missing short description in doc comment
 25 | ERROR | [ ] Missing parameter comment
 31 | ERROR | [ ] Missing short description in doc comment
 32 | ERROR | [ ] Description for the @return value is missing
 38 | ERROR | [ ] Missing short description in doc comment
 39 | ERROR | [ ] Missing parameter comment
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Event/PermissionsByTermDeniedEvent.php
--------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------
  8 | ERROR | [x] Doc comment short description must end with a full stop
 16 | ERROR | [ ] Missing short description in doc comment
 24 | ERROR | [ ] Missing parameter comment
 30 | ERROR | [ ] Missing short description in doc comment
 31 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Service/TermHandler.php
-----------------------------------------------------------------------------------------------
FOUND 26 ERRORS AND 1 WARNING AFFECTING 25 LINES
-----------------------------------------------------------------------------------------------
   7 | WARNING | [x] Unused use statement
  10 | ERROR   | [x] Doc comment short description must end with a full stop
  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   | [ ] Missing parameter comment
  31 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  39 | ERROR   | [ ] Missing short description in doc comment
  40 | ERROR   | [ ] Missing parameter comment
  42 | ERROR   | [ ] Description for the @return value is missing
  53 | ERROR   | [x] Missing function doc comment
  69 | ERROR   | [ ] Missing short description in doc comment
  70 | ERROR   | [ ] Missing parameter comment
  72 | ERROR   | [ ] Description for the @return value is missing
  74 | ERROR   | [ ] Type hint "array" missing for $tids
  77 | ERROR   | [x] Object operator not indented correctly; expected 8 spaces but found 10
  90 | ERROR   | [ ] Missing short description in doc comment
  91 | ERROR   | [ ] Missing parameter comment
  93 | ERROR   | [ ] Description for the @return value is missing
 110 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 113 | ERROR   | [ ] Missing short description in doc comment
 114 | ERROR   | [ ] Missing parameter comment
 116 | ERROR   | [ ] Description for the @return value is missing
 125 | ERROR   | [x] Missing function doc comment
 129 | ERROR   | [ ] Missing short description in doc comment
 130 | ERROR   | [ ] Description for the @return value is missing
 130 | ERROR   | [x] Data types in @return tags need to be fully namespaced
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Service/AccessStorage.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 130 ERRORS AND 3 WARNINGS AFFECTING 111 LINES
-------------------------------------------------------------------------------------------------------------------------------------
   9 | WARNING | [x] Unused use statement
  13 | WARNING | [x] Unused use statement
  25 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  29 | ERROR   | [ ] Missing short description in doc comment
  34 | ERROR   | [ ] Missing short description in doc comment
  39 | ERROR   | [ ] Missing short description in doc comment
  44 | ERROR   | [ ] Missing short description in doc comment
  45 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  49 | ERROR   | [ ] Missing short description in doc comment
  50 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  54 | ERROR   | [ ] Missing short description in doc comment
  59 | ERROR   | [x] Missing function doc comment
  60 | ERROR   | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
  84 | ERROR   | [ ] Missing short description in doc comment
  85 | ERROR   | [ ] Missing parameter comment
  85 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 102 | ERROR   | [ ] Missing short description in doc comment
 102 | ERROR   | [ ] Parameter $langcode is not described in comment
 103 | ERROR   | [ ] Missing parameter comment
 105 | ERROR   | [ ] Description for the @return value is missing
 116 | ERROR   | [ ] Missing short description in doc comment
 117 | ERROR   | [ ] Missing parameter comment
 117 | ERROR   | [x] Expected 1 spaces after parameter type; 3 found
 118 | ERROR   | [ ] Missing parameter comment
 120 | ERROR   | [ ] Description for the @return value is missing
 122 | ERROR   | [ ] Type hint "array" missing for $rids
 142 | ERROR   | [ ] Missing short description in doc comment
 143 | ERROR   | [ ] Missing parameter comment
 143 | ERROR   | [x] Expected 1 spaces after parameter type; 2 found
 144 | ERROR   | [ ] Missing parameter comment
 145 | ERROR   | [ ] Description for the @return value is missing
 147 | ERROR   | [ ] Type hint "array" missing for $tids
 161 | ERROR   | [ ] Missing short description in doc comment
 162 | ERROR   | [ ] Missing parameter comment
 163 | ERROR   | [ ] Missing parameter comment
 165 | ERROR   | [ ] Description for the @return value is missing
 176 | ERROR   | [ ] Missing short description in doc comment
 177 | ERROR   | [ ] Missing parameter comment
 177 | ERROR   | [x] Expected 1 spaces after parameter type; 2 found
 178 | ERROR   | [ ] Missing parameter comment
 179 | ERROR   | [ ] Description for the @return value is missing
 181 | ERROR   | [ ] Type hint "array" missing for $tids
 196 | ERROR   | [ ] Missing short description in doc comment
 197 | ERROR   | [ ] Missing parameter comment
 199 | ERROR   | [ ] Description for the @return value is missing
 209 | ERROR   | [ ] Missing short description in doc comment
 210 | ERROR   | [ ] Missing parameter comment
 212 | ERROR   | [ ] Description for the @return value is missing
 214 | ERROR   | [ ] Type hint "array" missing for $aUserNames
 223 | ERROR   | [ ] Missing short description in doc comment
 223 | ERROR   | [ ] Parameter $langcode is not described in comment
 224 | ERROR   | [ ] Missing parameter comment
 226 | ERROR   | [ ] Description for the @return value is missing
 239 | ERROR   | [ ] Missing short description in doc comment
 239 | ERROR   | [ ] Parameter $langcode is not described in comment
 240 | ERROR   | [ ] Missing parameter comment
 241 | ERROR   | [ ] Missing parameter comment
 241 | ERROR   | [x] Expected 1 spaces after parameter type; 3 found
 243 | ERROR   | [ ] Type hint "array" missing for $aUserIdsAccessRemove
 253 | ERROR   | [ ] Missing short description in doc comment
 253 | ERROR   | [ ] Parameter $langcode is not described in comment
 254 | ERROR   | [ ] Missing parameter comment
 255 | ERROR   | [ ] Missing parameter comment
 255 | ERROR   | [x] Expected 1 spaces after parameter type; 3 found
 257 | ERROR   | [ ] Type hint "array" missing for $aRoleIdsAccessRemove
 267 | ERROR   | [ ] Missing short description in doc comment
 268 | ERROR   | [ ] Missing parameter comment
 292 | ERROR   | [x] Missing function doc comment
 297 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 303 | WARNING | [x] A comma should follow the last multiline array item. Found: $langcode
 310 | ERROR   | [ ] Missing short description in doc comment
 311 | ERROR   | [ ] Missing parameter comment
 311 | ERROR   | [x] Expected 1 spaces after parameter type; 2 found
 312 | ERROR   | [ ] Missing parameter comment
 312 | ERROR   | [x] Expected 1 spaces after parameter type; 4 found
 313 | ERROR   | [ ] Missing parameter comment
 317 | ERROR   | [ ] Type hint "array" missing for $aRoleIdsGrantedAccess
 331 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 334 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 372 | ERROR   | [ ] Missing short description in doc comment
 373 | ERROR   | [ ] Missing parameter comment
 373 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 374 | ERROR   | [ ] Missing parameter comment
 376 | ERROR   | [ ] Description for the @return value is missing
 379 | ERROR   | [ ] Expected type hint "FormState"; found "FormStateInterface" for $formState
 420 | ERROR   | [ ] Type hint "array" missing for $aExistingItems
 446 | ERROR   | [ ] Type hint "array" missing for $aNewItems
 446 | ERROR   | [ ] Type hint "array" missing for $aExistingItems
 473 | ERROR   | [ ] Type hint "array" missing for $aExistingUserPermissions
 473 | ERROR   | [ ] Type hint "array" missing for $aSubmittedUserIdsGrantedAccess
 473 | ERROR   | [ ] Type hint "array" missing for $aExistingRoleIdsGrantedAccess
 473 | ERROR   | [ ] Type hint "array" missing for $aSubmittedRolesGrantedAccess
 503 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 509 | ERROR   | [ ] Type hint "array" missing for $aAllowedUsers
 516 | ERROR   | [x] Expected 1 space(s) after cast statement; 0 found
 537 | ERROR   | [ ] Missing parameter type
 568 | ERROR   | [ ] Missing short description in doc comment
 569 | ERROR   | [ ] Description for the @return value is missing
 572 | ERROR   | [x] Opening brace should be on the same line as the declaration
 579 | ERROR   | [ ] Missing short description in doc comment
 580 | ERROR   | [ ] Missing parameter comment
 580 | ERROR   | [ ] Missing parameter type
 582 | ERROR   | [ ] Description for the @return value is missing
 585 | ERROR   | [x] Opening brace should be on the same line as the declaration
 591 | ERROR   | [x] Object operator not indented correctly; expected 6 spaces but found 13
 594 | ERROR   | [ ] Missing short description in doc comment
 595 | ERROR   | [ ] Missing parameter comment
 595 | ERROR   | [ ] Missing parameter type
 597 | ERROR   | [ ] Description for the @return value is missing
 600 | ERROR   | [x] Opening brace should be on the same line as the declaration
 606 | ERROR   | [x] Object operator not indented correctly; expected 6 spaces but found 13
 609 | ERROR   | [ ] Missing short description in doc comment
 610 | ERROR   | [ ] Missing parameter comment
 610 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 612 | ERROR   | [ ] Description for the @return value is missing
 615 | ERROR   | [x] Opening brace should be on the same line as the declaration
 616 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 640 | ERROR   | [x] Missing function doc comment
 641 | ERROR   | [x] Opening brace should be on the same line as the declaration
 648 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 665 | ERROR   | [x] Missing function doc comment
 700 | ERROR   | [ ] Missing short description in doc comment
 701 | ERROR   | [ ] Description for the @return value is missing
 710 | ERROR   | [ ] Missing short description in doc comment
 711 | ERROR   | [ ] Missing parameter comment
 711 | ERROR   | [ ] Missing parameter type
 713 | ERROR   | [ ] Description for the @return value is missing
 716 | ERROR   | [x] Opening brace should be on the same line as the declaration
 725 | ERROR   | [ ] Missing short description in doc comment
 726 | ERROR   | [ ] Missing parameter comment
 726 | ERROR   | [ ] Missing parameter type
 728 | ERROR   | [ ] Description for the @return value is missing
 731 | ERROR   | [x] Opening brace should be on the same line as the declaration
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Service/NodeAccess.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 80 ERRORS AND 3 WARNINGS AFFECTING 60 LINES
---------------------------------------------------------------------------------------------------------------------------
   7 | WARNING | [x] Unused use statement
   9 | WARNING | [x] Unused use statement
  10 | WARNING | [x] Unused use statement
  13 | ERROR   | [x] Doc comment short description must end with a full stop
  19 | ERROR   | [ ] Missing short description in doc comment
  20 | ERROR   | [x] Do not append variable name "$uniqueGid" to the type declaration in a member variable comment
  24 | ERROR   | [ ] Missing short description in doc comment
  25 | ERROR   | [x] Do not append variable name "$accessStorage" to the type declaration in a member variable comment
  29 | ERROR   | [ ] Missing short description in doc comment
  30 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  30 | ERROR   | [x] Do not append variable name "$userEntityStorage" to the type declaration in a member variable comment
  34 | ERROR   | [ ] Missing short description in doc comment
  35 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  35 | ERROR   | [x] Do not append variable name "$node" to the type declaration in a member variable comment
  39 | ERROR   | [ ] Missing short description in doc comment
  40 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  40 | ERROR   | [x] Do not append variable name "$entityTypeManager" to the type declaration in a member variable comment
  44 | ERROR   | [ ] Missing short description in doc comment
  45 | ERROR   | [x] Do not append variable name "$accessCheck" to the type declaration in a member variable comment
  49 | ERROR   | [ ] Missing short description in doc comment
  50 | ERROR   | [x] Do not append variable name "$loadedUid" to the type declaration in a member variable comment
  54 | ERROR   | [ ] Missing short description in doc comment
  55 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  55 | ERROR   | [x] Do not append variable name "$userInstance" to the type declaration in a member variable comment
  62 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  69 | ERROR   | [ ] Missing parameter comment
  69 | ERROR   | [x] Expected 1 spaces after parameter type; 11 found
  70 | ERROR   | [ ] Missing parameter comment
  70 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  70 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  71 | ERROR   | [ ] Missing parameter comment
  71 | ERROR   | [x] Expected 1 spaces after parameter type; 11 found
  71 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  72 | ERROR   | [ ] Missing parameter comment
  72 | ERROR   | [x] Expected 1 spaces after parameter type; 13 found
  73 | ERROR   | [ ] Missing parameter comment
  73 | ERROR   | [x] Expected 1 spaces after parameter type; 14 found
  73 | ERROR   | [x] Data types in @param tags need to be fully namespaced
  91 | ERROR   | [ ] Missing short description in doc comment
  92 | ERROR   | [ ] Description for the @return value is missing
  92 | ERROR   | [x] Data types in @return tags need to be fully namespaced
  92 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 105 | ERROR   | [ ] Missing short description in doc comment
 106 | ERROR   | [ ] Description for the @return value is missing
 112 | ERROR   | [ ] Missing short description in doc comment
 113 | ERROR   | [ ] Missing parameter comment
 119 | ERROR   | [x] Missing function doc comment
 128 | ERROR   | [ ] Missing short description in doc comment
 129 | ERROR   | [ ] Missing parameter comment
 129 | ERROR   | [ ] Missing parameter type
 130 | ERROR   | [ ] Missing parameter comment
 130 | ERROR   | [ ] Missing parameter type
 131 | ERROR   | [ ] Missing parameter comment
 131 | ERROR   | [ ] Missing parameter type
 133 | ERROR   | [ ] Description for the @return value is missing
 148 | ERROR   | [ ] Missing short description in doc comment
 149 | ERROR   | [ ] Missing parameter comment
 149 | ERROR   | [ ] Missing parameter type
 150 | ERROR   | [ ] Missing parameter comment
 150 | ERROR   | [ ] Missing parameter type
 152 | ERROR   | [ ] Description for the @return value is missing
 156 | ERROR   | [x] Expected 1 space(s) after cast statement; 0 found
 156 | ERROR   | [x] Expected 1 space(s) after cast statement; 0 found
 163 | ERROR   | [x] Missing function doc comment
 172 | ERROR   | [x] Missing function doc comment
 181 | ERROR   | [ ] Missing short description in doc comment
 182 | ERROR   | [ ] Missing parameter comment
 182 | ERROR   | [ ] Missing parameter type
 184 | ERROR   | [ ] Description for the @return value is missing
 197 | ERROR   | [ ] Missing short description in doc comment
 198 | ERROR   | [ ] Description for the @return value is missing
 204 | ERROR   | [ ] Missing short description in doc comment
 205 | ERROR   | [ ] Missing parameter comment
 211 | ERROR   | [ ] Missing short description in doc comment
 212 | ERROR   | [ ] Description for the @return value is missing
 212 | ERROR   | [x] Data types in @return tags need to be fully namespaced
 224 | ERROR   | [ ] Missing short description in doc comment
 225 | ERROR   | [ ] Missing parameter comment
 225 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 227 | ERROR   | [ ] Type hint "User" missing for $userInstance
 231 | ERROR   | [ ] Missing short description in doc comment
 232 | ERROR   | [ ] Missing parameter comment
 234 | ERROR   | [ ] Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Service/NodeEntityBundleInfo.php
--------------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 23 LINES
--------------------------------------------------------------------------------------------------------
 11 | ERROR | [x] Doc comment short description must end with a full stop
 17 | ERROR | [ ] Missing short description in doc comment
 22 | ERROR | [ ] Missing short description in doc comment
 27 | ERROR | [ ] Missing short description in doc comment
 28 | ERROR | [x] Data types in @var tags need to be fully namespaced
 32 | ERROR | [ ] Missing short description in doc comment
 33 | ERROR | [x] Data types in @var tags need to be fully namespaced
 40 | ERROR | [ ] Missing parameter comment
 40 | ERROR | [x] Expected 1 spaces after parameter type; 3 found
 41 | ERROR | [ ] Missing parameter comment
 41 | ERROR | [x] Expected 1 spaces after parameter type; 12 found
 42 | ERROR | [ ] Missing parameter comment
 42 | ERROR | [x] Data types in @param tags need to be fully namespaced
 43 | ERROR | [ ] Missing parameter comment
 43 | ERROR | [x] Expected 1 spaces after parameter type; 6 found
 43 | ERROR | [x] Data types in @param tags need to be fully namespaced
 57 | ERROR | [ ] Missing short description in doc comment
 58 | ERROR | [ ] Missing parameter comment
 58 | ERROR | [ ] Missing parameter type
 59 | ERROR | [ ] Missing parameter comment
 60 | ERROR | [ ] Missing parameter comment
 60 | ERROR | [ ] Doc comment for parameter $langcode does not match actual variable name <undefined>
 62 | ERROR | [ ] Description for the @return value is missing
 67 | ERROR | [ ] Type hint "null" missing for $nid
 67 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 68 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 93 | ERROR | [ ] Missing short description in doc comment
 94 | ERROR | [ ] Description for the @return value is missing
 97 | ERROR | [x] Opening brace should be on the same line as the declaration
 98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/src/Service/AccessCheck.php
-------------------------------------------------------------------------------------------------------------
FOUND 47 ERRORS AFFECTING 38 LINES
-------------------------------------------------------------------------------------------------------------
  24 | ERROR | [ ] Missing short description in doc comment
  25 | ERROR | [x] Data types in @var tags need to be fully namespaced
  29 | ERROR | [ ] Parameter $eventDispatcher is not described in comment
  32 | ERROR | [x] Data types in @param tags need to be fully namespaced
  36 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
  40 | ERROR | [x] Missing function doc comment
  41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
  57 | ERROR | [x] Expected newline after closing brace
  91 | ERROR | [ ] Missing short description in doc comment
  92 | ERROR | [ ] Missing parameter comment
  92 | ERROR | [x] Expected 1 spaces after parameter type; 6 found
  93 | ERROR | [ ] Missing parameter comment
  94 | ERROR | [ ] Missing parameter comment
  94 | ERROR | [x] Expected 1 spaces after parameter type; 3 found
  95 | ERROR | [ ] Description for the @return value is missing
  98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 102 | ERROR | [x] Expected newline after closing brace
 130 | ERROR | [ ] Missing short description in doc comment
 131 | ERROR | [ ] Missing parameter comment
 131 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
 132 | ERROR | [ ] Missing parameter comment
 132 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
 133 | ERROR | [ ] Missing parameter comment
 135 | ERROR | [ ] Description for the @return value is missing
 149 | ERROR | [ ] Missing short description in doc comment
 150 | ERROR | [ ] Missing parameter comment
 150 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
 151 | ERROR | [ ] Missing parameter comment
 152 | ERROR | [ ] Missing parameter comment
 154 | ERROR | [ ] Description for the @return value is missing
 169 | ERROR | [ ] Missing short description in doc comment
 170 | ERROR | [ ] Missing parameter comment
 170 | ERROR | [x] Expected 1 spaces after parameter type; 4 found
 171 | ERROR | [ ] Missing parameter comment
 173 | ERROR | [ ] Description for the @return value is missing
 176 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
 178 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
 181 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
 191 | ERROR | [x] Missing function doc comment
 194 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 203 | ERROR | [x] Missing function doc comment
 204 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 209 | ERROR | [x] Missing function doc comment
 210 | ERROR | [x] Opening brace should be on the same line as the declaration
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/test/permission-output.tests.js
------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------
  7 | ERROR | [x] Space before opening parenthesis of function call prohibited
 46 | ERROR | [x] Space before opening parenthesis of function call prohibited
 82 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/test/term-selector.tests.js
--------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------
  5 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 16 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 26 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/test/dom-client.tests.js
-----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------
  4 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/test/permission-creator.tests.js
-------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------
  4 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 27 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 47 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/webpack-dist/bundle-test.js
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/webpack-dist/bundle.js
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
---------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/model/permission-output.prototype.js
---------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  9 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 16 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 23 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 30 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 34 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/model/backend.prototype.js
-----------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------
  1 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 11 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 18 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 25 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 29 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 33 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/client/dom-client.prototype.js
---------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------
  10 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  16 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  39 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  68 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  86 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  98 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 114 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/client/permission-output-collector.prototype.js
--------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------
  6 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 10 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 15 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 37 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 59 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 63 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/client/term-collector.prototype.js
-------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------
  5 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  5 | ERROR | [x] Expected 1 space before opening brace; found 0
  9 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 13 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 25 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 31 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 44 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 52 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 56 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/async-function/fetch-from-backend.js
---------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------
  6 | ERROR | [x] Space before opening parenthesis of function call prohibited
 18 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/async-function/create-permission.js
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Space before opening parenthesis of function call prohibited
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/drupal-behavior-function/node-form-client.js
-----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------
 19 | ERROR | [x] Space before opening parenthesis of function call prohibited
 59 | ERROR | [x] Expected 1 space before opening brace; found 0
 63 | ERROR | [x] Expected 1 space before opening brace; found 0
 67 | ERROR | [x] Expected 1 space before opening brace; found 0
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/js/src/adapter/document-adapter.prototype.js
----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------
 4 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Behat/composer-require-namespace.php
------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------
 1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
 2 | WARNING | [x] There must be no blank line following an inline comment
 2 | ERROR   | [x] You must use "/**" style comments for a file comment
 5 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 6 | ERROR   | [x] Short array syntax must be used to define arrays
 7 | ERROR   | [x] Expected 1 space before "|"; 0 found
 7 | ERROR   | [x] Expected 1 space after "|"; 0 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Behat/Context/PermissionsByTermContext.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 77 ERRORS AND 3 WARNINGS AFFECTING 70 LINES
-------------------------------------------------------------------------------------------------------------------------------
  13 | ERROR   | [x] Doc comment short description must end with a full stop
  23 | ERROR   | [x] Missing function doc comment
  36 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
  37 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
  38 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
  65 | ERROR   | [ ] Missing short description in doc comment
  82 | ERROR   | [ ] Missing short description in doc comment
  86 | ERROR   | [x] Opening brace should be on the same line as the declaration
  90 | ERROR   | [ ] Missing short description in doc comment
  94 | ERROR   | [x] Opening brace should be on the same line as the declaration
 104 | ERROR   | [x] Missing function doc comment
 108 | ERROR   | [ ] Missing short description in doc comment
 115 | ERROR   | [ ] Missing short description in doc comment
 125 | ERROR   | [ ] Missing short description in doc comment
 135 | ERROR   | [ ] Missing short description in doc comment
 139 | ERROR   | [x] Opening brace should be on the same line as the declaration
 143 | ERROR   | [ ] Missing short description in doc comment
 147 | ERROR   | [x] Opening brace should be on the same line as the declaration
 151 | ERROR   | [ ] Missing short description in doc comment
 153 | ERROR   | [ ] Missing parameter comment
 156 | ERROR   | [x] Opening brace should be on the same line as the declaration
 164 | ERROR   | [ ] Missing short description in doc comment
 166 | ERROR   | [ ] Missing parameter comment
 169 | ERROR   | [x] Opening brace should be on the same line as the declaration
 177 | ERROR   | [ ] Missing short description in doc comment
 179 | ERROR   | [ ] Missing parameter comment
 182 | ERROR   | [x] Opening brace should be on the same line as the declaration
 191 | ERROR   | [ ] Missing short description in doc comment
 193 | ERROR   | [ ] Missing parameter comment
 195 | ERROR   | [ ] Public method name "PermissionsByTermContext::checkCheckboxWithJS" is not in lowerCamel format
 196 | ERROR   | [x] Opening brace should be on the same line as the declaration
 204 | ERROR   | [ ] Missing short description in doc comment
 206 | ERROR   | [ ] Missing parameter comment
 209 | ERROR   | [x] Opening brace should be on the same line as the declaration
 216 | ERROR   | [ ] Missing short description in doc comment
 218 | ERROR   | [ ] Missing parameter comment
 221 | ERROR   | [x] Opening brace should be on the same line as the declaration
 228 | ERROR   | [ ] Missing short description in doc comment
 230 | ERROR   | [ ] Missing parameter comment
 231 | ERROR   | [ ] Missing parameter comment
 234 | ERROR   | [x] Opening brace should be on the same line as the declaration
 240 | ERROR   | [ ] Missing short description in doc comment
 243 | ERROR   | [ ] Public method name "PermissionsByTermContext::iShouldSeeTextAfterAWhile" is not in lowerCamel format
 244 | ERROR   | [x] Opening brace should be on the same line as the declaration
 250 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 257 | ERROR   | [x] Expected newline after closing brace
 258 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 262 | ERROR   | [ ] Missing short description in doc comment
 265 | ERROR   | [ ] Public method name "PermissionsByTermContext::iShouldNotSeeTextAfterAWhile" is not in lowerCamel format
 266 | ERROR   | [x] Opening brace should be on the same line as the declaration
 271 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 280 | ERROR   | [ ] Missing short description in doc comment
 282 | ERROR   | [ ] Missing parameter comment
 285 | ERROR   | [x] Opening brace should be on the same line as the declaration
 289 | ERROR   | [ ] Missing short description in doc comment
 300 | ERROR   | [ ] Missing short description in doc comment
 310 | ERROR   | [ ] Missing short description in doc comment
 314 | ERROR   | [x] Opening brace should be on the same line as the declaration
 315 | ERROR   | [x] Comments may not appear after statements
 315 | ERROR   | [x] Inline comments must start with a capital letter
 315 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 319 | ERROR   | [x] Comments may not appear after statements
 319 | ERROR   | [x] Inline comments must start with a capital letter
 319 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 321 | ERROR   | [x] Inline comments must start with a capital letter
 321 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 322 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 326 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 335 | ERROR   | [ ] Public method name "PermissionsByTermContext::dumpHTML" is not in lowerCamel format
 339 | ERROR   | [ ] Missing short description in doc comment
 351 | ERROR   | [x] Array indentation error, expected 10 spaces but found 12
 351 | ERROR   | [x] Object operator not indented correctly; expected 10 spaces but found 12
 359 | ERROR   | [ ] Missing short description in doc comment
 365 | ERROR   | [x] Comments may not appear after statements
 365 | ERROR   | [x] Inline comments must start with a capital letter
 365 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 376 | ERROR   | [ ] Missing short description in doc comment
 382 | ERROR   | [x] Comments may not appear after statements
 382 | ERROR   | [x] Inline comments must start with a capital letter
 382 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 40 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/MultilingualTest.php
---------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 6 WARNINGS AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------------
   7 | WARNING | [x] Unused use statement
  13 | ERROR   | [ ] Missing short description in doc comment
  20 | ERROR   | [ ] Missing short description in doc comment
  21 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  21 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  33 | ERROR   | [x] Missing function doc comment
  52 | WARNING | [x] A comma should follow the last multiline array item. Found: )
  54 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
  62 | ERROR   | [x] Missing function doc comment
  69 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  78 | ERROR   | [x] Missing function doc comment
 110 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 112 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 127 | WARNING | [x] A comma should follow the last multiline array item. Found: )
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/PermissionModeTest.php
-----------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------
 11 | ERROR   | [x] Doc comment short description must end with a full stop
 21 | WARNING | [ ] Possible useless method overriding detected
 25 | ERROR   | [x] Missing function doc comment
 38 | ERROR   | [x] Missing function doc comment
 47 | ERROR   | [x] Missing function doc comment
 60 | ERROR   | [x] Missing function doc comment
 72 | ERROR   | [x] Missing function doc comment
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/NodeEntityBundleInfoTest.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 5 WARNINGS AFFECTING 12 LINES
------------------------------------------------------------------------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
 11 | ERROR   | [x] Doc comment short description must end with a full stop
 18 | ERROR   | [ ] Missing short description in doc comment
 19 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 31 | ERROR   | [ ] Missing short description in doc comment
 32 | ERROR   | [ ] If there is no return value for a function, there must not be a @return tag.
 32 | ERROR   | [ ] Description for the @return value is missing
 44 | WARNING | [x] A comma should follow the last multiline array item. Found: 'First Role'
 57 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Second Role'
 70 | WARNING | [x] A comma should follow the last multiline array item. Found: 'Third Role'
 87 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 93 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 93 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 93 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
 94 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/TermHandlerTest.php
--------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
  5 | ERROR   | [x] There must be one blank line after the last USE statement; 2 found;
  8 | ERROR   | [ ] Missing short description in doc comment
 16 | WARNING | [ ] Possible useless method overriding detected
 20 | ERROR   | [x] Missing function doc comment
 25 | ERROR   | [x] Data types in @var tags need to be fully namespaced
 30 | ERROR   | [x] Short array syntax must be used to define arrays
 30 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
 32 | ERROR   | [x] Short array syntax must be used to define arrays
 32 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
 38 | ERROR   | [x] Short array syntax must be used to define arrays
 38 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/AccessStorageTest.php
----------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 5 WARNINGS AFFECTING 22 LINES
----------------------------------------------------------------------------------------------------------
   7 | ERROR   | [ ] Missing short description in doc comment
  15 | WARNING | [ ] Possible useless method overriding detected
  19 | ERROR   | [x] Missing function doc comment
  28 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
  29 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
  34 | WARNING | [x] A comma should follow the last multiline array item. Found: $accessOutput
  35 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
  44 | ERROR   | [x] Missing function doc comment
  45 | ERROR   | [x] Short array syntax must be used to define arrays
  45 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  47 | ERROR   | [x] Short array syntax must be used to define arrays
  47 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  50 | ERROR   | [x] Short array syntax must be used to define arrays
  50 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  65 | ERROR   | [x] Short array syntax must be used to define arrays
  65 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  67 | ERROR   | [x] Short array syntax must be used to define arrays
  67 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  67 | ERROR   | [x] Empty array declaration must have no space between the parentheses
  70 | ERROR   | [x] Short array syntax must be used to define arrays
  75 | ERROR   | [x] Short array syntax must be used to define arrays
  75 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  75 | ERROR   | [x] Empty array declaration must have no space between the parentheses
  78 | ERROR   | [x] Short array syntax must be used to define arrays
  78 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  92 | ERROR   | [x] Short array syntax must be used to define arrays
  92 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  94 | ERROR   | [x] Short array syntax must be used to define arrays
  94 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
  94 | ERROR   | [x] Empty array declaration must have no space between the parentheses
  97 | ERROR   | [x] Short array syntax must be used to define arrays
 102 | ERROR   | [x] Short array syntax must be used to define arrays
 102 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
 102 | ERROR   | [x] Empty array declaration must have no space between the parentheses
 105 | ERROR   | [x] Short array syntax must be used to define arrays
 105 | ERROR   | [x] There must be no space between the "array" keyword and the opening parenthesis
 111 | ERROR   | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 35 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/PBTKernelTestBase.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 39 ERRORS AND 17 WARNINGS AFFECTING 56 LINES
-------------------------------------------------------------------------------------------------------------------------------------
  12 | WARNING | [x] Unused use statement
  13 | WARNING | [x] Unused use statement
  20 | ERROR   | [x] Doc comment short description must end with a full stop
  26 | ERROR   | [ ] Missing short description in doc comment
  31 | ERROR   | [ ] Missing short description in doc comment
  36 | ERROR   | [ ] Missing short description in doc comment
  41 | ERROR   | [ ] Missing short description in doc comment
  49 | ERROR   | [ ] If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
  51 | ERROR   | [ ] Missing short description in doc comment
  52 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  56 | ERROR   | [ ] Missing short description in doc comment
  57 | ERROR   | [x] Data types in @var tags need to be fully namespaced
  84 | ERROR   | [x] Missing function doc comment
  96 | ERROR   | [x] Missing function doc comment
 133 | ERROR   | [x] Missing function doc comment
 144 | ERROR   | [x] Missing function doc comment
 145 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 158 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 162 | ERROR   | [x] Expected newline after closing brace
 166 | ERROR   | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 171 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 176 | ERROR   | [x] Missing function doc comment
 207 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 210 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 215 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 216 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 217 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 223 | ERROR   | [x] Missing function doc comment
 238 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 240 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 246 | ERROR   | [x] Missing function doc comment
 270 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 273 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 275 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 281 | ERROR   | [x] Missing function doc comment
 301 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 304 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 306 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 310 | ERROR   | [x] Expected 1 blank line after function; 2 found
 313 | ERROR   | [x] Missing function doc comment
 320 | ERROR   | [ ] Missing short description in doc comment
 321 | ERROR   | [ ] Description for the @return value is missing
 327 | ERROR   | [ ] Missing short description in doc comment
 328 | ERROR   | [ ] Missing parameter comment
 334 | ERROR   | [ ] Missing short description in doc comment
 335 | ERROR   | [ ] Description for the @return value is missing
 341 | ERROR   | [ ] Missing short description in doc comment
 342 | ERROR   | [ ] Missing parameter comment
 348 | ERROR   | [ ] Missing short description in doc comment
 349 | ERROR   | [ ] Description for the @return value is missing
 355 | ERROR   | [ ] Missing short description in doc comment
 356 | ERROR   | [ ] Missing parameter comment
 362 | ERROR   | [ ] Missing short description in doc comment
 363 | ERROR   | [ ] Description for the @return value is missing
 369 | ERROR   | [ ] Missing short description in doc comment
 370 | ERROR   | [ ] Missing parameter comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 33 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/tests/src/Kernel/AccessCheckTest.php
--------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 6 WARNINGS AFFECTING 15 LINES
--------------------------------------------------------------------------------------------------------
  13 | ERROR   | [x] Doc comment short description must end with a full stop
  23 | WARNING | [ ] Possible useless method overriding detected
  27 | ERROR   | [x] Missing function doc comment
  51 | ERROR   | [x] Missing function doc comment
  74 | ERROR   | [x] Missing function doc comment
  97 | ERROR   | [x] Missing function doc comment
 121 | ERROR   | [x] Missing function doc comment
 144 | ERROR   | [x] Missing function doc comment
 154 | ERROR   | [x] Missing function doc comment
 176 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 179 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 181 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 188 | ERROR   | [x] Missing function doc comment
 207 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 209 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------


FILE: ...x-git/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/EventSubscriber/PermissionsByEntityKernelEventSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
 84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/modules/permissions_by_entity/src/Service/AccessChecker.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------
 187 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 250 | ERROR | [x] Expected 1 blank line after function; 0 found
 251 | 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: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/modules/permissions_by_entity/tests/src/Kernel/EntityAccessCheckTest.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  20 | ERROR | [x] Doc comment short description must end with a full stop
 171 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
 186 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
 207 | ERROR | [ ] Description for the @return value is missing
 222 | ERROR | [ ] Description for the @return value is missing
 235 | ERROR | [ ] Description for the @return value is missing
 244 | ERROR | [x] Expected 1 blank line after function; 0 found
 245 | 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: /var/www/html/D-8.9.x-git/modules/contrib/permissions_by_term/modules/permissions_by_entity/tests/src/Kernel/EntityPublicationTest.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
 82 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
--------------------------------------------------------------------------------------------------------------------------------------------


FILE: ...permissions_by_term/modules/permissions_by_entity/tests/modules/pbt_entity_test/src/EventSubscriber/MockedDynamicPageCacheSubscriber.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
 43 | ERROR | [x] Expected 1 blank line after function; 0 found
 44 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

Time: 527ms; Memory: 14MB

Steps to reproduce

Run following command
phpcs --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml .

📌 Task
Status

Needs work

Version

3.0

Component

Code

Created by

🇮🇳India ashutosh.mishra

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.

  • 🇨🇦Canada imustakim Canada

    Issue summary updated.

  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
     /**
    - * Class EntityAccessCheckTest
    + * Class EntityAccessCheckTest.
      *
      * @group permissions_by_term
      */

    The description for a class must not start with Class nor repeat the class name.

        * @return \Symfony\Component\EventDispatcher\EventDispatcher
    +   *   Return the EventDispatcher instance.
        */

    The description for the return value must not start with Return nor Returns.

       /**
    -   * Unpublished nodes without restrictions should not be visible to anonymous
    -   * users.
    +   * Unpublished nodes without restrictions should not be visible to anonymous.
    +   *
    +   * Users.
        */

    Splitting the short description into short description and long description as done there is wrong. Users. is not enough as long description.
    Either the short description is left as it is, or it is rewritten to make it shorted. Keep in mind that anonymous is not a short for anonymous users. Visitors can be used as synonym of anonymous users.

    +  /**
    +   * Constructor for AccessResultCache class.
    +   *
    +   * @param \Drupal\Core\Cache\CacheBackendInterface $cache
    +   *   The cache interface instance.
    +   */
       public function __construct(CacheBackendInterface $cache) {

    The description for a constructor must start with Constructs a new followed by the class name (including its namespace), and ends with object.

    +  /**
    +   * Set access results cache.
    +   *
    +   * @param int $accountId
    +   *   Account id.
    +   * @param int $entityId
    +   *   Entity id.
    +   * @param \Drupal\Core\Access\AccessResult $accessResult
    +   *   Access result instance.
    +   */
       public function setAccessResultsCache(int $accountId, int $entityId, AccessResult $accessResult): void {

    The verb used in the short description must be declined to the third person singular.
    The parameter descriptions are each missing the definite article.
    id is misspelled (since it is ID).

    -   * @var CacheTagsInvalidator
    +   * Cache instance.
    +   *
    +   * @var \Drupal\Core\Cache\Cache
        */
       private $cacheTagsInvalidator;
    

    That is a \Drupal\Core\Cache\CacheTagsInvalidator instance.

       /**
    +   * Value of entity.
    +   *
        * @var bool
        */
       public $value;

    Description of properties must not start with Value of.

         if ($form_state->getValue('disable_node_access_records') && !\Drupal::configFactory()
    -        ->getEditable('permissions_by_term.settings')
    -        ->get('disable_node_access_records')) {
    -      node_access_rebuild(true);
    +      ->getEditable('permissions_by_term.settings')
    +      ->get('disable_node_access_records')) {

    As per Drupal coding standards, control structure conditions must be written on a single line.

  • 🇮🇳India _pratik_ Banglore

    Some points from #19 are covered in patch.
    Thanks

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
        * @return \Symfony\Component\EventDispatcher\EventDispatcher
    +   *   The EventDispatcher instance will be returned.

    The return value description must just say what is returned, without saying will be returned nor the class of the returned value.

       /**
    -   * Unpublished nodes without restrictions should not be visible to anonymous
    -   * users.
    +   * Unpublished nodes without restrictions should not be
    +   * visible to anonymous user.
    +   * 
        */
       public function testAnonymousCannotViewUnpublishedNodesWithoutTermPermissions(): void {

    The short description must be shorter than 81 characters.
    That short description does not describe that method, though.

    +/**
    + * AccessResultCache class.
    + */
     class AccessResultCache {
     
       /**
    @@ -16,10 +18,26 @@ class AccessResultCache {
        */
       protected $cache;
     
    +  /**
    +   * Constructs a new AccessResultCache object.
    +   *
    +   * @param \Drupal\Core\Cache\CacheBackendInterface $cache
    +   *   The cache interface instance.
    +   */
       public function __construct(CacheBackendInterface $cache) {
         $this->cache = $cache;
       }

    Those changes are not correct, since a class description must not repeat the class name.
    The description for a constructor must start with Constructs a new followed by the class name (including its namespace), and ends with object.

    +  /**
    +   * Set access results cache.
    +   *
    +   * @param int $accountId
    +   *   Account id.
    +   * @param int $entityId
    +   *   Entity id.
    +   * @param \Drupal\Core\Access\AccessResult $accessResult
    +   *   Access result instance.
    +   */
       public function setAccessResultsCache(int $accountId, int $entityId, AccessResult $accessResult): void {

    The verb used in the short description must be declined to the third person singular.
    The parameter descriptions are each missing the definite article.
    id is misspelled (since it is ID).

  • Assigned to nitin_lama
  • Merge request !24Permissions by term 3136117/3.0.x dev → (Open) created by nitin_lama
  • Issue was unassigned.
  • 🇮🇳India nitin_lama India

    I think we need to update the version of this module to 3.1.x as target branch is 3.1.x-dev. Current patches applies to 3.0.x-dev

  • First commit to issue fork.
  • Assigned to akshaydalvi212
  • 🇮🇳India akshaydalvi212

    hi,
    I will work on this issues and resolve it as well.

  • Issue was unassigned.
  • 🇮🇳India akshaydalvi212

    Hi,
    I resolved almost all the phpcs issues, only some unused variable and private methods issues are remaining

    Thanks

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    MR !24 is changing JavaScript files, which are not even listed in the PHP_CodeSniffer report given in the issue summary, nor would they be in a GitLab CI report.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    avpaderno changed the visibility of the branch 3136117-gitlab-ci-reports to hidden.

Production build 0.71.5 2024