Fix the issues reported by phpcs

Created on 12 May 2023, over 1 year ago
Updated 6 June 2023, over 1 year ago

Problem/Motivation

Module's code contains several Drupal Coding Standards issues. This task is created to fix them.

Steps to reproduce

Run the command:

phpcs --standard=Drupal/web/modules/contrib/yml_query/

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.

FILE: \modules\contrib\yml_query\src\Parser.php
---------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
46 | ERROR | [x] Expected 1 space before opening brace; found 0
46 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
50 | ERROR | [ ] Missing short description in doc comment
91 | ERROR | [x] Expected 1 space before opening brace; found 2
91 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
93 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
98 | WARNING | [x] There must be no blank line following an inline comment
---------------------------------------------------------------------------------------------------------------------

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Component

Code

Created by

🇮🇳India Shanu Chouhan

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.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024