Comply with Drupal coding standards (3)

Created on 9 May 2023, over 1 year ago

Problem/Motivation

  • Refactor drupal/cloud_orchestrator code based on phpcs --standard=DrupalPractice
    $ cd /var/www/html; phpcs --standard=DrupalPractice --ignore=node_modules,bower_components,vendor --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,yaml,twig,json,ts,tsx,feature /var/www/html/web/profiles/contrib/cloud_orchestrator/
    
    FILE: /var/www/html/web/profiles/contrib/cloud_orchestrator/cloud_orchestrator.profile
    --------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------
     74 | WARNING | Unused variable $mes.
    --------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/profiles/contrib/cloud_orchestrator/modules/cloud_orchestrator_tour/cloud_orchestrator_tour.info.yml
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
     1 | WARNING | "Description" property is missing in the info.yml file
    ----------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/web/profiles/contrib/cloud_orchestrator/src/Installer/Form/ModuleConfigureForm.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------------------------
      72 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
      96 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
     103 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
    ------------------------------------------------------------------------------------------------------
    
    
πŸ“Œ Task
Status

Fixed

Version

6.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024