Drupal-standard=practice issues

Created on 19 August 2022, over 2 years ago
Updated 6 November 2023, about 1 year ago

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\autoshortqr\src\Controller\CodeController.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------------
160 | WARNING | Node::load calls should be avoided in classes, use dependency injection instead
169 | WARNING | User::load calls should be avoided in classes, use dependency injection instead
189 | WARNING | Term::load calls should be avoided in classes, use dependency injection instead
191 | WARNING | Vocabulary::load calls should be avoided in classes, use dependency injection instead
282 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
339 | WARNING | User::load calls should be avoided in classes, use dependency injection instead
363 | WARNING | Term::load calls should be avoided in classes, use dependency injection instead
365 | WARNING | Vocabulary::load calls should be avoided in classes, use dependency injection instead
392 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
422 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\autoshortqr\src\Plugin\Field\FieldType\AutoCodeLinkItem.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
80 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\autoshortqr\src\Plugin\Field\FieldType\ShortLinkLinkItem.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
81 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇮🇳India Harsh panchal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024