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
--------------------------------------------------------------------------------------------------------------

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

arti_parmar created an issue. See original summary.

arti_parmar’s picture

Assigned: arti_parmar » Unassigned
Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new2.53 KB

Kindly review patch.

kenyoowen’s picture

Status: Needs review » Needs work
StatusFileSize
new111.27 KB
new113.65 KB
new127.56 KB

Hi 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.

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

elber’s picture

Status: Needs work » Needs review

I fixed the phpcs

  • arti_parmar authored f0527791 on 2.0.x
    Issue #3368271 by arti_parmar, elber, kenyoOwen, gisle: Role::...
gisle’s picture

Status: Needs review » Fixed

This has been committed to the latest snapshot of 2.0.x-dev.

Status: Fixed » Closed (fixed)

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