- Issue created by @lostcarpark
- 🇮🇪Ireland lostcarpark
PHPCS validation now passing with no issues.
Most of the fixes were adding PHP docblocks.
However, in
src/Drush/Commands/MigrateToolsCommands.php
the issue was long arrays in PHP attributes.First tried splitting these into multiple lines. This fixed the PHPCS issue, but the PREVIOUS_MAJOR test fails, because attributes not supported by PHP7.4.
Added
// phpcs:disable Drupal.Arrays.Array.LongLineDeclaration
to ignore. However, the extra comment made PHPCS think the DocBlock was missing, so had to add// phpcs:disable Drupal.Commenting.FunctionComment.Missing, Squiz.WhiteSpace.FunctionSpacing.Before
to the function declaration to suppress that warning.Hopefully, support for D9 will eventually be dropped from the module, and at that point we should tidy this up.
- Status changed to Needs review
6 months ago 12:10am 28 December 2023