Fix the issues reported by phpcs

Created on 29 March 2023, over 1 year ago
Updated 20 August 2024, 3 months ago

Problem/Motivation

Resolve the PHP Coding standard issue.

FILE: /Users/arunkumar/Projects/Contribution/edit_profiles_perms/tests/modules/edit_profiles_perms_test/edit_profiles_perms_test.info.yml
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
 7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /Users/arunkumar/Projects/Contribution/edit_profiles_perms/src/EditProfilesPermsPermissions.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
 25 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /Users/arunkumar/Projects/Contribution/edit_profiles_perms/src/EditProfilesPermsAccessHandler.php
------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------
 15 | ERROR   | [x] The open comment tag must be the only content on the line
 15 | ERROR   | [x] Doc comment short description must be on the first line
 15 | ERROR   | [x] Function comment short description must start with exactly one space
 15 | ERROR   | [x] Doc comment short description must start with a capital letter
 16 | ERROR   | [ ] Doc comment short description must end with a full stop
 16 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 20 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the Code sniffer

Run the phpcs --standard="DrupalPractice,DrupalStandard" edit_profiles_perms

Proposed resolution

Resolve the PHPCS issues.

Remaining tasks

Testing

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

šŸ‡®šŸ‡³India arunkumark Coimbatore

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