Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$ phpcs modules/cdn --standard="core/phpcs.xml.dist"
FILE: /Users/wim.leers/Work/d8/modules/cdn/cdn.module
----------------------------------------------------------------------
FOUND 14 ERRORS AND 1 WARNING AFFECTING 15 LINES
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
4 | WARNING | [x] Unused use statement
11 | ERROR | [x] Line indented incorrectly; expected 4 spaces,
| | found 6
12 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
13 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
14 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
15 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
16 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
17 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
18 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
20 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
22 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 8
----------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...im.leers/Work/d8/modules/cdn/cdn_ui/src/Form/CdnSettingsForm.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
185 | ERROR | [x] Use "elseif" in place of "else if"
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...sers/wim.leers/Work/d8/modules/cdn/src/File/FileUrlGenerator.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
141 | ERROR | [x] Use "elseif" in place of "else if"
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...cdn/tests/src/Functional/Update/CdnDefaultSettingsUpdateTest.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
84 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...8/modules/cdn/tests/src/Kernel/EditorFileReferenceFilterTest.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
84 | ERROR | [x] Expected 1 space before "="; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...nit/StackMiddleware/DuplicateContentPreventionMiddlewareTest.php
----------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
68 | ERROR | [x] Expected one space after the comma, 12 found
69 | ERROR | [x] Expected one space after the comma, 6 found
71 | ERROR | [x] Expected one space after the comma, 2 found
72 | ERROR | [x] Expected one space after the comma, 2 found
73 | ERROR | [x] Expected one space after the comma, 12 found
74 | ERROR | [x] Expected one space after the comma, 6 found
76 | ERROR | [x] Expected one space after the comma, 2 found
77 | ERROR | [x] Expected one space after the comma, 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 193ms; Memory: 8Mb
Comment | File | Size | Author |
---|---|---|---|
#2 | 2830546-2.patch | 7.79 KB | Wim Leers |
Comments
Comment #2
Wim Leers.
Comment #4
Wim Leers