Drupal Coding Standards fix | phpcs

Created on 7 December 2022, almost 2 years ago
Updated 22 June 2023, over 1 year ago

Following issues and warnings shows in phpcs

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/views_exclude_previous/views_exclude_previous.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/views_exclude_previous/views_exclude_previous.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
53 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "_views_exclude_previous" but expected
| | "views_exclude_previous__views_exclude_previous"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/views_exclude_previous/src/Plugin/views/filter/ViewsExcludePreviousNodes.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
20 | WARNING | [x] '@todo: Make this pluggable.' should match the format '@todo Fix problem X here.'
45 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
----------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India noorulshameera

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024