Fix the issues reported by phpcs

Created on 10 July 2024, 6 months ago
Updated 13 August 2024, 5 months ago

Problem/Motivation

command -:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/sortableviews/

FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/sortableviews-3460418/js/sortable.js
----------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------
  83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


Steps to reproduce

Run PHPCS on Config Pages module.

Proposed resolution

Fixed the coding standards.

Remaining tasks

Submit the patch either MR.

📌 Task
Status

Needs work

Version

1.1

Component

Code

Created by

🇮🇳India hetal.solanki

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024