Fix coding standard | PHPCS

Created on 7 February 2023, about 2 years ago

Problem/Motivation

Fix the following coding standard issue from PHPCS.

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/telephone_validation/tests/src/Unit/ValidatorTest.php
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
97 | ERROR | Description for the @return value is missing
110 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/telephone_validation/tests/src/Kernel/TelephoneItemTest.php
------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] When importing a class with "use", do not include a leading \
8 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
21 | ERROR | [ ] Missing @var tag in member variable comment
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/telephone_validation/tests/src/Kernel/ConfigTest.php
-----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------
6 | ERROR | [x] When importing a class with "use", do not include a leading \
8 | ERROR | [ ] Missing short description in doc comment
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/telephone_validation/src/Plugin/Validation/Constraint/TelephoneConstraint.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | Missing member variable doc comment
------------------------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/telephone_validation/src/Render/Element/TelephoneValidation.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
13 | ERROR | Long array syntax must not be used in doc comment code annotations
----------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India noorulshameera

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024