$ 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
CommentFileSizeAuthor
#2 2830546-2.patch7.79 KBWim Leers
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

Wim Leers’s picture

Status: Active » Needs review
FileSize
7.79 KB

.

  • Wim Leers committed 231043f on 8.x-3.x
    Issue #2830546 by Wim Leers: Fix all phpcs violations
    
Wim Leers’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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