Fix the issues reported by PHPCS

Created on 17 April 2023, over 1 year ago
Updated 1 May 2023, over 1 year ago

Problem/Motivation

FILE: ...modules/contrib/bert/src/Plugin/EntityReferenceSelection/BertSelection.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
283 | WARNING | Line exceeds 80 characters; contains 107 characters
--------------------------------------------------------------------------------

FILE: ...on/drupal10/web/modules/contrib/bert/src/Plugin/Field/FieldWidget/Bert.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
632 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
633 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/contribution/drupal10/web/modules/contrib/bert/bert.install
--------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 9 LINES
--------------------------------------------------------------------------------
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
44 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but
| | found "false"
45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 1.28 secs; Memory: 14MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig bert/

Proposed resolution

Fix all the reported errors and warnings for Drupal and DrupalPractice coding standards

Remaining tasks

Patch review.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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