Drupal Practice Error

Created on 24 February 2023, about 2 years ago

Problem/Motivation


FILE: ..._paths_test/src/StreamWrapper/FileFieldPathsDummyReadOnlyStreamWrapper.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 20 | WARNING | t() calls should be avoided in classes, use
    |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
    |         | $this->t() instead
 27 | WARNING | t() calls should be avoided in classes, use
    |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
    |         | $this->t() instead
--------------------------------------------------------------------------------


FILE: ...contrib/filefield_paths/tests/src/Functional/FileFieldPathsGeneralTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 32 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------


FILE: ...ontrib/filefield_paths/tests/src/Functional/FileFieldPathsRedirectTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 76 | WARNING | Unused variable $nid.
--------------------------------------------------------------------------------


FILE: .../drupal_9.4/drupal/web/modules/contrib/filefield_paths/filefield_paths.inc
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 128 | WARNING | [x] '@TODO - Add test for this.' should match the format
     |         |     '@todo Fix problem X here.'
--------------------------------------------------------------------------------


FILE: ...l_9.4/drupal/web/modules/contrib/filefield_paths/src/Form/SettingsForm.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: ...l_9.4/drupal/web/modules/contrib/filefield_paths/src/Utility/FieldItem.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 48 | ERROR | [ ] Missing parameter type
 50 | ERROR | [ ] Missing parameter type
 57 | ERROR | [x] Expected 1 space after IF keyword; 0 found
--------------------------------------------------------------------------------

Time: 1.96 secs; Memory: 12MB
📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.71.5 2024