Fix the issues reported by phpcs

Created on 6 March 2023, over 1 year ago
Updated 21 July 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/drupalassessment/web/modules/contrib/paragraphs_gantt/src/Controller/ParagraphsGanttController.php
----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------
161 | WARNING | Unused variable $targetTaskId.
162 | WARNING | Unused variable $nextTask.
166 | WARNING | Unused variable $targetTaskId.
167 | WARNING | Unused variable $nextTask.
----------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalassessment/web/modules/contrib/paragraphs_gantt/paragraphs_gantt.module
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
18 | ERROR | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalassessment/web/modules/contrib/paragraphs_gantt/templates/paragraphs-gantt-wrapper.html.twig
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
75 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

Time: 261ms; Memory: 16MB

Steps to reproduce

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig paragraphs_gantt/

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India indrapatil Bangalore

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.71.5 2024