Fix the errors/warnings reported by PHP_CodeSniffer

Created on 14 February 2019, over 5 years ago
Updated 27 December 2023, 6 months ago

Problem/Motivation

FILE: /home/system/Documents/contribution/menu_link_config/src/Entity/MenuLinkConfig.php
----------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
----------------------------------------------------------------------------------------
  51 | ERROR | Missing member variable doc comment
  52 | ERROR | Missing member variable doc comment
  53 | ERROR | Missing member variable doc comment
  54 | ERROR | Missing member variable doc comment
  55 | ERROR | Missing member variable doc comment
  56 | ERROR | Missing member variable doc comment
  57 | ERROR | Missing member variable doc comment
  58 | ERROR | Missing member variable doc comment
  59 | ERROR | Missing member variable doc comment
  60 | ERROR | Missing member variable doc comment
  61 | ERROR | Missing member variable doc comment
  62 | ERROR | Missing member variable doc comment
 241 | ERROR | Type hint "callable" missing for $processor
----------------------------------------------------------------------------------------


FILE: /home/system/Documents/contribution/menu_link_config/src/Controller/MenuController.php
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
 35 | ERROR | Missing parameter type
--------------------------------------------------------------------------------------------


FILE: /home/system/Documents/contribution/menu_link_config/src/MenuLinkConfigInterface.php
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
 12 | ERROR | Doc comment is empty
------------------------------------------------------------------------------------------

Time: 102ms; Memory: 10MB

FILE: /home/system/Documents/contribution/menu_link_config/src/Plugin/Menu/Form/MenuLinkConfigForm.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
 385 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------

Time: 70ms; Memory: 8MB

Steps to reproduce

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml menu_link_config 
๐Ÿ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia GGH

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024