Drupal Coding Standards Issues | phpcs

Created on 17 January 2023, over 1 year ago

The problem

The code is not following coding standard. getting following issues errors and warnings.

FILE: ...b/add_to_calendar/tests/src/Functional/AddToCalendarBaseTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
48 | WARNING | Unused variable $entity_type_manager.
----------------------------------------------------------------------

FILE: ...ib/add_to_calendar/tests/src/Kernel/AddToCalendarDisplayTest.php
----------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
6 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
12 | WARNING | [x] Unused use statement
12 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
46 | ERROR | [ ] The array declaration extends to column 116 (the
| | limit is 80). The array content should be split
| | up over multiple lines
78 | WARNING | [x] A comma should follow the last multiline array
| | item. Found: 'full_html'
87 | ERROR | [x] Expected 1 space between comma and "'\r'"; 0
| | found
87 | ERROR | [x] Expected one space after the comma, 0 found
122 | ERROR | [x] Expected 1 space between comma and "'\r'"; 0
| | found
122 | ERROR | [x] Expected one space after the comma, 0 found
159 | ERROR | [ ] Protected method name
| | "AddToCalendarDisplayTest::getUTCEquivalentOfUserNowAsTimestamp"
| | is not in lowerCamel format
----------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 1.67 secs; Memory: 12MB

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇳India shivam-kumar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • Issue was unassigned.
Production build 0.69.0 2024