Fixed Coding Standard Issues

Created on 1 September 2025, 13 days ago

Problem/Motivation

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/tests/src/Functional/BlogTestBase.php
----------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------
26 | ERROR | Missing short description in doc comment
29 | ERROR | There must not be more than one property declared per statement
29 | ERROR | Missing member variable doc comment
29 | ERROR | Missing member variable doc comment
29 | ERROR | Missing member variable doc comment
31 | ERROR | Missing short description in doc comment
34 | ERROR | There must not be more than one property declared per statement
34 | ERROR | Missing member variable doc comment
34 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/tests/src/Functional/InstallUninstallTest.php
------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
79 | ERROR | [x] Expected 1 blank line after function; 0 found
80 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/tests/src/Functional/MyBlogLinkTest.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
26 | ERROR | Missing short description in doc comment
------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/tests/src/Functional/BasicBlogTest.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
28 | ERROR | Missing short description in doc comment
-----------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/tests/src/Functional/EmptyBlogTest.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
26 | ERROR | Missing short description in doc comment
-----------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/src/Controller/BlogController.php
------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------
45 | ERROR | [ ] Missing parameter comment
47 | ERROR | [x] Data types in @return tags need to be fully namespaced
------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/blog/src/BlogBreadcrumbBuilder.php
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
19 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Merge Requests

Comments & Activities

  • Issue created by @Rohit Rana
  • Merge request !3coding standard issues fixed → (Open) created by Rohit Rana
  • 🇮🇳India Rohit Rana

    Please review the merge request

  • 🇮🇳India vinodhini.e chennai

    Hi @rohit rana,

    Tested on Drupal 11.2.3.
    Applied Merge Request #3, which fixed some coding standards issues.
    After applying the merge, the module still shows some coding standards issues on Drupal 11.2.x. Need to check.

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/BlogListerInterface.php
    ----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/BlogUninstallValidator.php
    -----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    -----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/Controller/BlogController.php
    --------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    --------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/BlogLister.php
    ----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/BlogBreadcrumbBuilder.php
    ----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/src/Plugin/Menu/MyBlogLink.php
    -----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    -----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/BlogTestBase.php
    ------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/MyBlogLinkTest.php
    --------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    --------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/InstallUninstallTest.php
    --------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    --------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/BreadcrumbTest.php
    --------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    --------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/BasicBlogTest.php
    -------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    -------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/GenericTest.php
    -----------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    -----------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------

    FILE: /var/www/html/web/modules/contrib/blog-3544130/tests/src/Functional/EmptyBlogTest.php
    -------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------
    1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    -------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------

  • 🇮🇳India Rohit Rana

    Hi @vinodhini.e

    I rechecked my commit and also ran the command vendor/bin/phpcs, but I did not get any further issues.

  • 🇮🇳India vinodhini.e chennai

    Hi @rohit rana,
    Just wanted to confirm, I am facing this issue on Drupal 11.2.3. Did you check it on the Drupal 11.2.x version?

  • 🇮🇳India Rohit Rana

    Hi @vinodhini.e,

    Yes, I checked it in Drupal version 11.2.3.

  • 🇮🇳India vinodhini.e chennai

    @rohit rana, Thanks for the update.

Production build 0.71.5 2024