FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\content_access\src\Form\ContentAccessAdminSettingsForm.php
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
124 | WARNING | Role::loadMultiple calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3368271 - after patch.png | 127.56 KB | kenyoowen |
| #3 | 3368271 - applied patch.png | 113.65 KB | kenyoowen |
| #3 | 3368271 - before patch.png | 111.27 KB | kenyoowen |
| #2 | 3368271-2.patch | 2.53 KB | arti_parmar |
Issue fork content_access-3368271
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
Comment #2
arti_parmar commentedKindly review patch.
Comment #3
kenyoowen commentedHi arti_parmar
I applied your patch and confirmed that the phpcs issue mentioned is resolved, but it added issues which is:
FILE: /Users/studenttrainees/Project10/drupalorg10/docroot/modules/contrib/content_access/src/Form/ContentAccessAdminSettingsForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------
48 | ERROR | [x] Expected 1 space after asterisk; 2 found
134 | ERROR | [x] Expected 1 space after "="; 2 found
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
Please see the screenshots attached.
Thank you.
Comment #5
elberI fixed the phpcs
Comment #8
gisleThis has been committed to the latest snapshot of 2.0.x-dev.