Task upgraded from "Drupal calls should be avoided in classes, use dependency injection instead" to "PHPCS compatibility"

Adding gitlab CI and converting to MR.

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

Maithri Shetty created an issue. See original summary.

maithri shetty’s picture

Assigned: maithri shetty » Unassigned
Status: Active » Needs review
StatusFileSize
new7.22 KB

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

vladimiraus’s picture

Title: Drupal calls should be avoided in classes, use dependency injection instead » PHPCS compatibility
Status: Needs review » Needs work

Task upgraded from "Drupal calls should be avoided in classes, use dependency injection instead" to "PHPCS compatibility"

vladimiraus’s picture

Issue summary: View changes

liam morland’s picture

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

sokru’s picture

Status: Needs work » Needs review

The PHPCS job is now green. I tried to keep changes minimal so it would be easy to review (so no constructor property promotion).

I fully ignored ExportTermsForm since the functionality is not working at the moment. I would recommend fixing the CS issues on same issues as where the export functionality will be done.

jhuhta’s picture

Status: Needs review » Reviewed & tested by the community

The changes look good and the touched functionalities still work, given that ExportTermsForm is ignored as @sokru said.

Phpstan and the likes will be addressed separately I assume.

vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed! 🥂

Status: Fixed » Closed (fixed)

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