Fix the issues reported by phpcs

Created on 3 May 2023, about 1 year ago
Updated 13 May 2023, about 1 year ago

Problem/Motivation

Found this issue reported by the phpcs:

FILE: ...udenttrainees/New/drupalorgsite/docroot/modules/contrib/multiple_registration/multiple_registration.module
----------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------
 235 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 236 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
 237 | ERROR | [x] Array closing indentation error, expected 6 spaces but found 8
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------


FILE: ...ainees/New/drupalorgsite/docroot/modules/contrib/multiple_registration/src/Form/CommonSettingsPageForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 17 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------


FILE: ...ainees/New/drupalorgsite/docroot/modules/contrib/multiple_registration/src/Form/AccessSettingsPageForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 17 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------


FILE: ...es/New/drupalorgsite/docroot/modules/contrib/multiple_registration/src/Form/DeleteRegistrationPageForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 14 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------


FILE: ...es/New/drupalorgsite/docroot/modules/contrib/multiple_registration/src/Form/CreateRegistrationPageForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 18 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------


FILE: ...trainees/New/drupalorgsite/docroot/modules/contrib/multiple_registration/src/AvailableUserRolesService.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 13 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------


FILE: ...palorgsite/docroot/modules/contrib/multiple_registration/src/Controller/MultipleRegistrationController.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 25 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
----------------------------------------------------------------------------------------------------------------

Time: 870ms; Memory: 14MB

Steps to reproduce

Run this command in this module folder phpcs --standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,css,info,txt,yml"

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇵🇭Philippines paraderojether

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

Comments & Activities

Production build 0.69.0 2024