- Merge request !9Issue # 3554583 by danrod: Applied fixes for the PHCS coding standard violations → (Open) created by danrod
The GitLab CI pipeline is currently failing due to phpcs (PHP CodeSniffer) errors detected when validating against Drupal and Slevomat coding standards.
PHP CODE SNIFFER REPORT SUMMARY ----------------------------------------------------------------------------- FILE ERRORS WARNINGS ----------------------------------------------------------------------------- src/PrintfulSyncBatch.php 4 0 src/Commands/CommercePrintfulCommands.php 1 0 src/Exception/PrintfulException.php 1 0 src/Form/PrintfulStoreForm.php 2 0 src/Form/PrintfulSynchronizationForm.php 6 0 src/Plugin/Commerce/ShippingMethod/PrintfulShipping.php 1 0 src/Plugin/Field/FieldWidget/PrintfulReferenceWidget.php 1 0 src/Service/OrderIntegrator.php 1 0 src/Service/Printful.php 2 0 src/Service/ProductIntegrator.php 1 0 ----------------------------------------------------------------------------- A TOTAL OF 20 ERRORS AND 0 WARNINGS WERE FOUND IN 26 FILES ----------------------------------------------------------------------------- PHPCBF CAN FIX 20 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma (6) Drupal.Commenting.FunctionComment.ReturnCommentIndentation (3) SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed (3) Drupal.Commenting.FunctionComment.ParamCommentIndentation (2) Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace (2) Drupal.Commenting.DocComment.TagGroupSpacing (1) Drupal.WhiteSpace.ScopeIndent.IncorrectExact (1) SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing (1) Squiz.WhiteSpace.SuperfluousWhitespace.EndLine (1)
3516944-add-gitlab-ci branch.phpcs job fails with exit code 2.junit.xml artifact for details.phpcs passes with no coding standard violations.
phpcs reports 20 errors across 10 files, all of which can be automatically fixed.
vendor/bin/phpcbf web/modules/custom/commerce_printful
@param and @return indentation.@param and @return tags.??).Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.