Fix the issues reported by phpcs

Created on 5 July 2023, 12 months ago

Problem/Motivation

$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sector_starter/

FILE: C:\Users\abc\Downloads\sector_starter\sector_starter.theme
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
25 | WARNING | Doc comment indicates hook_form_alter() but function signature
| | is "sector_starter_form_system_theme_settings_alter" instead
| | of "sector_starter_form_alter". Did you mean
| | hook_form_FORM_ID_alter()?
76 | WARNING | Unused variable $link_text.
83 | WARNING | Unused variable $node.
105 | WARNING | Unused variable $link_text.
171 | WARNING | Unused variable $key.
265 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------------

Time: 3.66 secs; Memory: 84MB

Proposed resolution

Create a patch.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Priya_Degwekar

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

Production build 0.69.0 2024