Problem/Motivation
Getting following error/warnings
FILE: /app/modules/contrib/queue_ui/src/Commands/QueueUiCommands.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------
214 | WARNING | Redeclaration of function parameter $batch as variable.
-------------------------------------------------------------------------
FILE: /app/modules/contrib/queue_ui/src/Form/ItemDetailForm.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
75 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: /app/modules/contrib/queue_ui/src/Form/OverviewForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
225 | WARNING | Unused variable $queue_ui.
----------------------------------------------------------------------
Time: 1.18 secs; Memory: 12MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/queue_ui/
Proposed resolution
Above error/warnings need to be fixed
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3325476-2.patch | 1.94 KB | samitk |
Issue fork queue_ui-3325476
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
Comment #2
samitk commentedIssue fixed.
Comment #3
atul_ghate commentedHi,
I will review this issue.
Comment #5
volegerPlease create the MR with changes from the patch
Comment #8
volegerFixed, thanks