FILE: ...ontrib/content_access/src/Controller/ContentAccessController.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...tent_access/src/Access/ContentAccessAdminSettingsAccessCheck.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
13 | ERROR | Doc comment short description must be on a single line,
| | further text should be a separate paragraph
----------------------------------------------------------------------
FILE: ...b/content_access/src/Access/ContentAccessNodePageAccessCheck.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
12 | ERROR | Doc comment short description must be on a single line,
| | further text should be a separate paragraph
----------------------------------------------------------------------
FILE: .../content_access/src/EventSubscriber/MigrationEventSubscriber.php
----------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
----------------------------------------------------------------------
38 | ERROR | [x] Parameter comment indentation must be 3 spaces,
| | found 2 spaces
63 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
68 | WARNING | [x] There must be no blank line following an inline
| | comment
78 | ERROR | [x] Expected 1 space after closing parenthesis;
| | found 0
107 | ERROR | [x] Expected 1 blank line after function; 0 found
108 | 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: ...dules/contrib/content_access/src/Tests/ContentAccessTestHelp.php
----------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 13 LINES
----------------------------------------------------------------------
15 | ERROR | [ ] Class property $test_user should use lowerCamel
| | naming without underscores
17 | ERROR | [ ] Class property $admin_user should use lowerCamel
| | naming without underscores
18 | ERROR | [ ] Class property $content_type should use
| | lowerCamel naming without underscores
19 | ERROR | [ ] Class property $url_content_type_name should use
| | lowerCamel naming without underscores
32 | ERROR | [ ] Doc comment short description must be on a
| | single line, further text should be a separate
| | paragraph
57 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: 'access administration pages'
71 | ERROR | [x] Visibility must be declared on method
| | "changeAccessContentType"
85 | ERROR | [ ] Doc comment short description must be on a
| | single line, further text should be a separate
| | paragraph
87 | ERROR | [x] Visibility must be declared on method
| | "changeAccessContentTypeKeyword"
112 | ERROR | [x] Visibility must be declared on method
| | "changeAccessPerNode"
121 | ERROR | [ ] Doc comment short description must be on a
| | single line, further text should be a separate
| | paragraph
123 | ERROR | [x] Visibility must be declared on method
| | "changeAccessNodeKeyword"
141 | ERROR | [x] Visibility must be declared on method
| | "changeAccessNode"
----------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...contrib/content_access/src/Tests/ContentAccessModuleTestCase.php
----------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------
39 | ERROR | [x] Visibility must be declared on method
| | "testViewAccess"
98 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
101 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
124 | ERROR | [x] Visibility must be declared on method
| | "testEditAccess"
157 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
205 | ERROR | [x] Visibility must be declared on method
| | "testDeleteAccess"
299 | ERROR | [x] Visibility must be declared on method
| | "testOwnViewAccess"
----------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...es/contrib/content_access/src/Tests/ContentAccessAclTestCase.php
----------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 15 LINES
----------------------------------------------------------------------
26 | ERROR | [x] Visibility must be declared on method "setUp"
41 | ERROR | [x] Visibility must be declared on method
| | "testViewAccess"
61 | ERROR | [x] Concat operator must be surrounded by a single
| | space
61 | ERROR | [x] Concat operator must be surrounded by a single
| | space
92 | ERROR | [x] Visibility must be declared on method
| | "testEditAccess"
106 | ERROR | [x] Concat operator must be surrounded by a single
| | space
111 | ERROR | [x] Concat operator must be surrounded by a single
| | space
116 | ERROR | [x] Concat operator must be surrounded by a single
| | space
125 | ERROR | [x] Concat operator must be surrounded by a single
| | space
130 | ERROR | [x] Concat operator must be surrounded by a single
| | space
137 | ERROR | [x] Visibility must be declared on method
| | "testDeleteAccess"
151 | ERROR | [x] Concat operator must be surrounded by a single
| | space
156 | ERROR | [x] Concat operator must be surrounded by a single
| | space
161 | ERROR | [x] Concat operator must be surrounded by a single
| | space
170 | ERROR | [x] Concat operator must be surrounded by a single
| | space
175 | ERROR | [x] Concat operator must be surrounded by a single
| | space
----------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...ent_access/src/Plugin/RulesAction/ActionGrantNodePermissions.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
34 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------
FILE: ...nt_access/src/Plugin/RulesAction/ActionRevokeNodePermissions.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
34 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------
FILE: ...ontrib/content_access/src/Plugin/RulesAction/ActionUserGrant.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
35 | ERROR | [x] Doc comment star missing
36 | ERROR | [x] Additional blank lines found at end of doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...cess/src/Plugin/RulesAction/ContentAccessUserRulesActionBase.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
23 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------
FILE: ...ntrib/content_access/src/Plugin/RulesAction/ActionUserRevoke.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
35 | ERROR | [x] Doc comment star missing
36 | ERROR | [x] Additional blank lines found at end of doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
This code will show the phpcs errors
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md path/to/module
FILE: ...ntrib/content_access/src/Form/ContentAccessAdminSettingsForm.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------
62 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
137 | WARNING | [ ] Line exceeds 80 characters; contains 81
| | characters
144 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
161 | WARNING | [ ] Line exceeds 80 characters; contains 107
| | characters
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | content-access-2982343-6.patch | 16.08 KB | mrinalini9 |
| #2 | content-access-2982343-2.patch | 17.38 KB | ishani.addweb |
Comments
Comment #2
ishani.addweb commented@mahtab_alam, Please find the attached patch that resolves all these standard related errors mentioned above. Thanks!..
Comment #4
gislePatch needs reroll against HEAD.
Comment #5
mrinalini9 commentedComment #6
mrinalini9 commentedRerolled patch for 8.x-1.x, please review.
Comment #8
gisleThanks for the patch! Committed.
This is fixed in the latest snapshot 8.x-1.x-dev.