Problem/Motivation

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/RoleWatchdogListBuilder.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
29 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/Form/RoleWatchdogForm.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
19 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
22 | WARNING | [ ] Unused variable $entity.
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/Form/RoleWatchdogSettingsForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
55 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/Entity/RoleWatchdogInterface.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
68 | WARNING | Line exceeds 80 characters; contains 83 characters
--------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/Entity/RoleWatchdog.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityBase.
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/src/RoleWatchdogAccessControlHandler.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Access\AccessResult.
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal_module_development/web/modules/contrib/role_watchdog/role_watchdog.module
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AND 1 WARNING AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityInterface.
71 | ERROR | [ ] Missing parameter comment
71 | ERROR | [ ] Missing parameter type
72 | ERROR | [ ] Missing parameter comment
72 | ERROR | [ ] Missing parameter type
73 | ERROR | [ ] Missing parameter comment
73 | ERROR | [ ] Missing parameter type
74 | ERROR | [ ] Missing parameter comment
74 | ERROR | [ ] Missing parameter type
75 | ERROR | [ ] Missing parameter comment
95 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
126 | ERROR | [ ] Missing parameter comment
126 | ERROR | [ ] Missing parameter type
127 | ERROR | [ ] Missing parameter comment
127 | ERROR | [ ] Missing parameter type
128 | ERROR | [ ] Missing parameter comment
128 | ERROR | [ ] Missing parameter type
134 | ERROR | [ ] The array declaration extends to column 212 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Install the role watchdog module and perform PHPCS for Drupal Standards

Proposed resolution

Fix the errors found from PHPCS

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Akshat26 created an issue. See original summary.

Akshat26’s picture

Assigned: Akshat26 » Unassigned
Status: Active » Needs review
StatusFileSize
new7.44 KB

All the mentioned phpcs issues have been fixed. Please review the patch #3391931-1

gautam_105@’s picture

Assigned: Unassigned » gautam_105@
gautam_105@’s picture

Status: Needs review » Reviewed & tested by the community

Patch get applied cleanly and resolved all the phpcs issues.

gautam_105@’s picture

StatusFileSize
new40.67 KB
new25.2 KB

@ Akshat26,
i have applied patch #2 that resolved all the phpcs issues And i have created MR for the same. see screenshot as well.

gautam_105@’s picture

Assigned: gautam_105@ » Unassigned

ericgsmith made their first commit to this issue’s fork.

ericgsmith’s picture

Version: 2.0.x-dev » 2.x-dev
Status: Reviewed & tested by the community » Fixed

Changes look good to me and the phpcs job is now green, thank you!

Status: Fixed » Closed (fixed)

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