Drupal Coding standard Issue

Created on 7 July 2022, over 2 years ago
Updated 23 April 2023, over 1 year ago

$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml tawk_to/

FILE: C:\Users\SI-001\Downloads\tawk_to\src\Controller\TawkToWidgetController.php
---------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------
38 | ERROR | [ ] Parameter $languageManager is not described in comment
59 | ERROR | [x] Expected 1 blank line after function; 0 found
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\tawk_to\src\Form\TawkToExtraSettingsForm.php
----------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------
139 | ERROR | [x] Use null coalesce operator instead of ternary operator.
254 | ERROR | [x] Use null coalesce operator instead of ternary operator.
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\tawk_to\src\Service\TawkToConditionPluginsHandler.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
98 | WARNING | [x] '@todo: Think the best way to handle this.' should match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

Time: 307ms; Memory: 10MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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.

Production build 0.71.5 2024