Code quality issues

Created on 2 April 2025, 4 days ago

Problem/Motivation

GitLab CI flags some code quality issues:

PHP CODE SNIFFER REPORT SUMMARY
----------------------------------------------------------------------
FILE                                                  ERRORS  WARNINGS
----------------------------------------------------------------------
src/MenuManipulator.php                               7       0
src/MenuManipulatorInterface.php                      9       0
----------------------------------------------------------------------
A TOTAL OF 16 ERRORS AND 0 WARNINGS WERE FOUND IN 5 FILES
----------------------------------------------------------------------
PHPCBF CAN FIX 16 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
-----------------------------------------------------------------------------
    SOURCE                                                              COUNT
-----------------------------------------------------------------------------
[x] Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma  10
[x] Drupal.Functions.MultiLineFunctionDeclaration.Indent                6
-----------------------------------------------------------------------------
A TOTAL OF 16 SNIFF VIOLATIONS WERE FOUND IN 2 SOURCES

 ------ ---------------------------------------------------------------------- 
  Line   src/MenuManipulatorBase.php                                           
 ------ ---------------------------------------------------------------------- 
  65     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
  66     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
  67     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
  68     \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
  287    \Drupal calls should be avoided in classes, use dependency injection  
         instead                                                               
 ------ ---------------------------------------------------------------------- 
 [ERROR] Found 5 errors   
πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jastraat

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024