Problem/Motivation
phpcs reports
FILE: src/QueueIterator.php
----------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------
13 | ERROR | Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
14 | ERROR | Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
16 | ERROR | Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
17 | ERROR | Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
22 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType)
24 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType)
----------------------------------------------------------------------------------------------
FILE: src/Plugin/migrate/source/Queue.php
------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement (Drupal.Classes.UnusedUseStatement.UnusedUse)
15 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort)
22 | ERROR | [ ] Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
23 | ERROR | [ ] Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
28 | ERROR | [x] Parameter $migration has null default value, but is not marked as nullable.
| | (SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing)
75 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters (Drupal.Files.LineLength.TooLong)
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: src/EventSubscriber/QueueItemDeleteSubscriber.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing)
25 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
| | (Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma)
39 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing)
-------------------------------------------------------------------------------------------------------
additionally, phpstan reports,
------ ----------------------------------------------------------------------
Line src/QueueIterator.php
------ ----------------------------------------------------------------------
123 \Drupal calls should be avoided in classes, use dependency injection
instead
🪪 globalDrupalDependencyInjection.useDependencyInjection
------ ----------------------------------------------------------------------
Remaining tasks
make a PR
Issue fork migrate_source_queue-3546308
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 #3
benstallings commentedComment #4
benstallings commentedComment #5
dieterholvoet commentedLeft some comments in the MR.