Phpcs Drupal coding Standard issues

Created on 29 June 2022, about 3 years ago
Updated 14 July 2024, 12 months ago

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\RequestSubscriber\StickQueryRequestSubscriber.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
--------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [x] Missing function doc comment
25 | ERROR | [x] Expected 1 blank line after function; 2 found
28 | ERROR | [x] Missing function doc comment
34 | ERROR | [x] Missing function doc comment
41 | ERROR | [x] Missing function doc comment
55 | ERROR | [x] Missing function doc comment
61 | ERROR | [x] Missing function doc comment
68 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryHandlerBase.php
---------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Missing class doc comment
11 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [x] Missing function doc comment
19 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Missing function doc comment
27 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Missing function doc comment
36 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryHandlerFactoryCollector.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Missing short description in doc comment
10 | ERROR | [x] Expected "array\Drupal\sticky_query\StickyQuery\StickyQueryHandlerFactoryInterface" but found "array<\Drupal\sticky_query\StickyQuery\StickyQueryHandlerFactoryInterface>" for @var tag in member variable
| | comment
14 | ERROR | [x] Missing function doc comment
18 | ERROR | [x] Missing function doc comment
22 | ERROR | [ ] Missing short description in doc comment
23 | ERROR | [ ] Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryHandlerFactoryInterface.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing interface doc comment
7 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryHandlerInterface.php
--------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Missing interface doc comment
9 | ERROR | [x] Missing function doc comment
11 | ERROR | [x] Missing function doc comment
13 | ERROR | [ ] Missing short description in doc comment
14 | ERROR | [ ] Description for the @return value is missing
18 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [ ] Missing parameter comment
20 | ERROR | [ ] Description for the @return value is missing
24 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [ ] Missing parameter comment
26 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryHandlerRegistry.php
-------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing short description in doc comment
15 | ERROR | [ ] Missing parameter comment
22 | ERROR | [ ] Missing short description in doc comment
23 | ERROR | [ ] Description for the @return value is missing
27 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
32 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\StickyQuery\StickyQueryPerLinkAlterableHandlerBase.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
22 | ERROR | [x] Missing function doc comment
32 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\sticky_query\src\UrlProcessor\StickyQueryUrlProcessor.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
14 | ERROR | [x] Doc comment short description must end with a full stop
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Missing member variable doc comment
22 | ERROR | [x] Missing function doc comment
27 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Missing function doc comment
35 | ERROR | [x] Missing function doc comment
41 | ERROR | [x] Missing function doc comment
68 | ERROR | [x] Missing function doc comment
74 | ERROR | [x] Missing function doc comment
75 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
78 | ERROR | [x] Expected 1 blank line after function; 2 found
81 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

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.

  • 🇮🇳India riddhi.addweb

    I have applied the patch but the patch 3293248-2 is failing.
    please check the screenshots for the same.

  • 🇵🇭Philippines clarkssquared

    Hi

    The patch is failing also in my end

    ➜  sticky_query git:(1.0.x) curl https://www.drupal.org/files/issues/2022-06-29/phpcs-drupal-coding-standard-3293248-2.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 13492  100 13492    0     0  30023      0 --:--:-- --:--:-- --:--:-- 30594
    patching file 'src/RequestSubscriber/StickQueryRequestSubscriber.php'
    patching file 'src/StickyQuery/StickyQueryHandlerBase.php'
    1 out of 1 hunks failed--saving rejects to 'src/StickyQuery/StickyQueryHandlerBase.php.rej'
    patching file 'src/StickyQuery/StickyQueryHandlerFactoryCollector.php'
    patching file 'src/StickyQuery/StickyQueryHandlerFactoryInterface.php'
    patching file 'src/StickyQuery/StickyQueryHandlerInterface.php'
    1 out of 1 hunks failed--saving rejects to 'src/StickyQuery/StickyQueryHandlerInterface.php.rej'
    patching file 'src/StickyQuery/StickyQueryHandlerRegistry.php'
    1 out of 2 hunks failed--saving rejects to 'src/StickyQuery/StickyQueryHandlerRegistry.php.rej'
    File to patch: 
    
Production build 0.71.5 2024