Fix the issues reported by phpcs

Created on 24 April 2023, over 1 year ago
Updated 9 October 2023, about 1 year ago

Problem/Motivation

Coding Standard Issue.

Steps to reproduce

vendor/bin/phpcs --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme" email_registration/

Issue that I get in email_registration.module

FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
83 | ERROR | The array declaration extends to column 152 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

Issue that I get in email_registration.install

FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
19 | ERROR | The array declaration extends to column 281 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

Proposed resolution

Run vendor/bin/phpcbf --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme" email_registration/

🐛 Bug report
Status

Closed: duplicate

Version

1.2

Component

Code

Created by

🇮🇳India Nishant

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