Fix the issues reported by phpcs

Created on 3 August 2023, almost 2 years ago

Problem/Motivation

Missing coding standards

Steps to reproduce

Run the command:

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

Proposed resolution

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


FILE: /var/www/html/web/modules/custom/entity_access_by_reference_field/tests/src/Functional/EntityAccessTestBase.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\entity_access_by_reference_field\Helper\Constants.
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/custom/entity_access_by_reference_field/README.md
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
---------------------------------------------------------------------------------
  3 | WARNING | Line exceeds 80 characters; contains 173 characters
 23 | WARNING | Line exceeds 80 characters; contains 109 characters
 24 | WARNING | Line exceeds 80 characters; contains 109 characters
 25 | WARNING | Line exceeds 80 characters; contains 113 characters
 26 | WARNING | Line exceeds 80 characters; contains 121 characters
 27 | WARNING | Line exceeds 80 characters; contains 86 characters
 29 | WARNING | Line exceeds 80 characters; contains 303 characters
 41 | WARNING | Line exceeds 80 characters; contains 135 characters
 45 | WARNING | Line exceeds 80 characters; contains 82 characters
---------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/custom/entity_access_by_reference_field/entity_access_by_reference_field.module
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
 12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Grevil

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