FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\commerce_gallery\src\Plugin\Block\CommerceGalleryBlock.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------
41 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
68 | WARNING | \Drupal 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

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Assigned: Harsh panchal » Unassigned
Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new2.57 KB

I have fixed this and providing a patch.

kecsot’s picture

Assigned: Unassigned » kecsot
kecsot’s picture

Assigned: kecsot » Unassigned
Status: Needs review » Needs work

I've tested the patch.

Missing __construct parameters and parent call also missing.
Forgot to format code.

Needs work.

Harsh panchal’s picture

Hi @kecsot
I got this issue i will provide a new patch.Thanks

Harsh panchal’s picture

Status: Needs work » Needs review
StatusFileSize
new2.62 KB

I have fixed #4 issues and providing a new patch.

sujan shrestha’s picture

sujan shrestha’s picture

Version: 1.0.x-dev » 1.0.1
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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