Fix the issues reported by phpcs

Created on 14 April 2023, almost 2 years ago
Updated 5 July 2024, 7 months ago

Problem/Motivation

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\modules\varnish_focal_point_purge\varnish_focal_point_purge.module
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 6 WARNINGS AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | WARNING | [x] Unused use statement
71 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
71 | WARNING | [x] 'TODO: Consider are we not doing duplicated work related to varnish_image purge...' should match the format '@todo Fix problem X here.'
73 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
77 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
80 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
86 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
88 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
100 | WARNING | [x] 'TODO: Have the concurrency exposed as configuration somewhere.' should match the format '@todo Fix problem X here.'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\modules\varnish_image_purge\src\Form\VarnishImagePurgeConfiguration.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
86 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
125 | WARNING | [ ] '@todo' should match the format '@todo Fix problem X here.'
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\modules\varnish_image_purge\varnish_image_purge.module
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 7 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | WARNING | [x] Unused use statement
79 | WARNING | [x] 'TODO: Does this exist? It's not using the purgers in ANY way.' should match the format '@todo Fix problem X here.'
86 | ERROR | [x] Blank comments are not allowed
104 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
110 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
115 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
119 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
127 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
127 | WARNING | [ ] Unused variable $delta.
133 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
139 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
141 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
155 | WARNING | [x] 'TODO: Have the concurrency exposed as configuration somewhere.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\modules\varnish_purge_tags\src\Plugin\Purge\TagsHeader\CacheTags.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: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\modules\varnish_purge_tags\src\Tests\CacheTagsTest.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
14 | ERROR | [ ] Missing member variable doc comment
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\DebugCallGraphTrait.php
-------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [x] Missing trait doc comment
27 | ERROR | [ ] Description for the @return value is missing
81 | ERROR | [ ] Description for the @return value is missing
103 | ERROR | [ ] Description for the @return value is missing
201 | ERROR | [x] Expected 1 blank line after function; 0 found
202 | ERROR | [x] The closing brace for the trait must have an empty line before it
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Entity\VarnishPurgerSettings.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
87 | ERROR | [ ] Class property $request_method should use lowerCamel naming without underscores
101 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
117 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
121 | ERROR | [ ] Class property $runtime_measurement should use lowerCamel naming without underscores
135 | ERROR | [ ] Class property $connect_timeout should use lowerCamel naming without underscores
139 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
143 | ERROR | [ ] Class property $cooldown_time should use lowerCamel naming without underscores
148 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
152 | ERROR | [ ] Class property $max_requests should use lowerCamel naming without underscores
162 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
164 | ERROR | [ ] Class property $http_errors should use lowerCamel naming without underscores
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Form\VarnishBundledPurgerForm.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Form\VarnishPurgerForm.php
----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
15 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Form\VarnishPurgerFormBase.php
--------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
27 | WARNING | [ ] '@todo' should match the format '@todo Fix problem X here.'
31 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
33 | ERROR | [ ] Class property $request_methods should use lowerCamel naming without underscores
83 | ERROR | [ ] Public method name "VarnishPurgerFormBase::getFormID" is not in lowerCamel format
223 | ERROR | [x] Use null coalesce operator instead of ternary operator.
258 | ERROR | [ ] Description for the @return value is missing
364 | WARNING | [ ] '@todo' should match the format '@todo Fix problem X here.'
378 | WARNING | [ ] Unused variable $tokens.
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Plugin\Purge\DiagnosticCheck\ConfigurationCheck.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
24 | ERROR | [ ] Missing short description in doc comment
30 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
78 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "SELF"
83 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "SELF"
87 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "SELF"
92 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "SELF"
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Plugin\Purge\Purger\VarnishBundledPurger.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: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Plugin\Purge\Purger\VarnishPurger.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
33 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
38 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
44 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Plugin\Purge\Purger\VarnishPurgerBase.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
17 | ERROR | [ ] Missing short description in doc comment
100 | ERROR | [ ] Type hint "array" missing for $token_data
136 | ERROR | [ ] Type hint "array" missing for $token_data
180 | ERROR | [ ] Type hint "array" missing for $token_data
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Plugin\Purge\Purger\ZeroConfigPurger.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AND 6 WARNINGS AFFECTING 26 LINES
------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
46 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
57 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
78 | ERROR | [x] Expected "int" but found "?int" for @var tag in member variable comment
137 | ERROR | [ ] Description for the @return value is missing
172 | ERROR | [ ] Type hint "\Closure" missing for $requests
180 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
189 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
211 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
249 | WARNING | [x] A comma should follow the last multiline array item. Found: 'invalidateEverything'
251 | ERROR | [x] Use null coalesce operator instead of ternary operator.
305 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
309 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
314 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
357 | ERROR | [ ] Missing parameter comment
372 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
375 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
387 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
410 | ERROR | [ ] Missing parameter comment
425 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
428 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
437 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
489 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
515 | ERROR | [ ] Description for the @return value is missing
524 | ERROR | [ ] Missing parameter comment
526 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Tests\VarnishBundledPurgerFormTest.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
31 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Tests\VarnishPurgerFormTest.php
---------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
31 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\src\Tests\VarnishPurgerFormTestBase.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
49 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\varnish_purge-3354158\tests\src\Behat\features\bootstrap\VarnishPurgeFeatureContext.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

Time: 4.6 secs; Memory: 8MB

Steps to reproduce

Run the phpcs command on the module.
Use this below command with arguments
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/varnish_purge

Proposed resolution

Fix all the phpcs related issue.

šŸ“Œ Task
Status

RTBC

Version

2.0

Component

Code

Created by

šŸ‡®šŸ‡³India sidharth_soman Bangalore

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

Not all content is available!

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

  • Issue created by @sidharth_soman
  • šŸ‡®šŸ‡³India sidharth_soman Bangalore

    After running the phpcs command on the module, I found the above coding standard errors/warnings as detailed in the issue summary. I'll work on fixing them.

  • Merge request !12Fixed phpcs issues. ā†’ (Open) created by sidharth_soman
  • Issue was unassigned.
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.

  • Status changed to Needs review over 1 year ago
  • šŸ‡®šŸ‡³India ashutosh ahirwal India

    Updated issue summmary.

  • Status changed to Needs work over 1 year ago
  • šŸ‡µšŸ‡­Philippines paraderojether

    Hi

    I reviewed MR!12 and still getting phpcs issues shown below after running this command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml.

    FILE: ...l.org/drupalorg-site/docroot/modules/contrib/varnish_purge/modules/varnish_purge_tags/src/Tests/CacheTagsTest.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     14 | ERROR | Missing member variable doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...l.org/drupalorg-site/docroot/modules/contrib/varnish_purge/modules/varnish_image_purge/varnish_image_purge.module
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     125 | WARNING | Unused variable $delta.
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/DebugCallGraphTrait.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    -----------------------------------------------------------------------------------------------------------------------
      11 | ERROR | Doc comment is empty
      30 | ERROR | Description for the @return value is missing
      84 | ERROR | Description for the @return value is missing
     106 | ERROR | Description for the @return value is missing
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...rs/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Form/VarnishPurgerForm.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     10 | ERROR | Missing short description in doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...enttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Form/VarnishBundledPurgerForm.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     10 | ERROR | Missing short description in doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...tudenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Form/VarnishPurgerFormBase.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
    -----------------------------------------------------------------------------------------------------------------------
      24 | ERROR   | Missing short description in doc comment
      81 | ERROR   | Public method name "VarnishPurgerFormBase::getFormID" is not in lowerCamel format
     256 | ERROR   | Description for the @return value is missing
     362 | WARNING | '@todo' should match the format '@todo Fix problem X here.'
     376 | WARNING | Unused variable $tokens.
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...denttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Entity/VarnishPurgerSettings.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 12 ERRORS AFFECTING 12 LINES
    -----------------------------------------------------------------------------------------------------------------------
      87 | ERROR | Class property $request_method should use lowerCamel naming without underscores
      96 | ERROR | Missing short description in doc comment
     108 | ERROR | Missing short description in doc comment
     117 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
     121 | ERROR | Class property $runtime_measurement should use lowerCamel naming without underscores
     135 | ERROR | Class property $connect_timeout should use lowerCamel naming without underscores
     139 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
     143 | ERROR | Class property $cooldown_time should use lowerCamel naming without underscores
     148 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
     152 | ERROR | Class property $max_requests should use lowerCamel naming without underscores
     157 | ERROR | Missing short description in doc comment
     164 | ERROR | Class property $http_errors should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...ainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Tests/VarnishBundledPurgerFormTest.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     26 | ERROR | Missing short description in doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...udenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Tests/VarnishPurgerFormTest.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     26 | ERROR | Missing short description in doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...ttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Tests/VarnishPurgerFormTestBase.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     49 | WARNING | Line exceeds 80 characters; contains 84 characters
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ....org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Plugin/Purge/DiagnosticCheck/ConfigurationCheck.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------------------
     24 | ERROR   | Missing short description in doc comment
     30 | WARNING | Line exceeds 80 characters; contains 89 characters
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...ees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Plugin/Purge/Purger/VarnishPurgerBase.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     17 | ERROR | Missing short description in doc comment
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: ...nees/Drupal.org/drupalorg-site/docroot/modules/contrib/varnish_purge/src/Plugin/Purge/Purger/ZeroConfigPurger.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 8 ERRORS AND 1 WARNING AFFECTING 9 LINES
    -----------------------------------------------------------------------------------------------------------------------
      46 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
      57 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
     137 | ERROR   | Description for the @return value is missing
     211 | WARNING | Line exceeds 80 characters; contains 81 characters
     357 | ERROR   | Missing parameter comment
     410 | ERROR   | Missing parameter comment
     515 | ERROR   | Description for the @return value is missing
     524 | ERROR   | Missing parameter comment
     526 | ERROR   | Description for the @return value is missing
    -----------------------------------------------------------------------------------------------------------------------
    
    Time: 767ms; Memory: 14MB

    Please check.
    Thank You.

  • Assigned to nitin_lama
  • Issue was unassigned.
  • šŸ‡®šŸ‡³India nitin_lama India

    Fixed most of the warnings/errors. Only remaining phpcs errors/warnings are these:

    FILE: /home/system/Documents/contribution/varnish_purge-3354158/modules/varnish_purge_tags/src/Tests/CacheTagsTest.php
    ----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------
     14 | ERROR | Missing member variable doc comment
    ----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/system/Documents/contribution/varnish_purge-3354158/src/Entity/VarnishPurgerSettings.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
     150 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
    -------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/system/Documents/contribution/varnish_purge-3354158/src/Plugin/Purge/Purger/ZeroConfigPurger.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------
     46 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
     57 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
    ------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/system/Documents/contribution/varnish_purge-3354158/src/Plugin/Purge/DiagnosticCheck/ConfigurationCheck.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
     32 | WARNING | Line exceeds 80 characters; contains 89 characters
    -----------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/system/Documents/contribution/varnish_purge-3354158/src/Tests/VarnishPurgerFormTestBase.php
    -------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------
     49 | WARNING | Line exceeds 80 characters; contains 84 characters
    -------------------------------------------------------------------------------------------------------
    
    Time: 188ms; Memory: 10MB
    
  • Status changed to Needs review over 1 year ago
  • šŸ‡®šŸ‡³India Bhupesh_upadhyay

    All the issues are fixed including the remaining ones, Kindly review.

  • Status changed to RTBC over 1 year ago
  • šŸ‡µšŸ‡­Philippines paraderojether

    I reviewed patch #10, applied against Varnish purger 8.x-2.x-dev, and confirme it fixes the issues reported by phpcs.

    I added screenshots for reference.
    Thank You.

  • Status changed to Needs work over 1 year ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹
    -  // TODO: Consider are we not doing duplicated work related to varnish_image purge...
    +  // @todo Consider are we not doing duplicated work related to varnish_image purge...

    It is probably either one or the other of these sentences

    Consider we are not duplicating work related to varnish_image purge.

    Consider to avoid duplicating the word done in varnish_image purge.

    -    // @todo
    -    // Validations.
    +    // @todo Validations.

    @todo Add validation. is better.

  • Assigned to nitin_lama
  • šŸ‡®šŸ‡³India nitin_lama India

    Addressed #12. Please review.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Hi, patch #10 fixes all the issues reported by phpcs and patch #12 addresses the issue mentioned in #12.
    Thankyou.

  • Status changed to Needs work 12 months ago
  • šŸ‡®šŸ‡¹Italy apaderno Brescia, šŸ‡®šŸ‡¹

    Since there is already a MR, let's continue with that.

  • Assigned to nitin_lama
  • šŸ‡®šŸ‡³India nitin_lama India
  • Status changed to Needs review 12 months ago
  • šŸ‡®šŸ‡³India nitin_lama India
  • First commit to issue fork.
  • šŸ‡®šŸ‡³India Yashaswi18

    Remaining issues:

    FILE: /home/yashaswi/contribs/varnish_purge/src/Tests/VarnishPurgerFormTestBase.php
    -----------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------
     49 | WARNING | Line exceeds 80 characters; contains 84 characters
    -----------------------------------------------------------------------------------
    
    
    FILE: /home/yashaswi/contribs/varnish_purge/src/Plugin/Purge/DiagnosticCheck/ConfigurationCheck.php
    ---------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------
     32 | WARNING | Line exceeds 80 characters; contains 89 characters
    ---------------------------------------------------------------------------------------------------

    Please review.

  • Status changed to Needs work 8 months ago
  • šŸ‡µšŸ‡­Philippines cleavinjosh

    Hi @Yashaswi18,

    I applied MR!12, it applied smoothly and after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml, these are the issues on my end.

    āžœ  varnish_purge git:(8.x-2.2) curl https://git.drupalcode.org/project/varnish_purge/-/merge_requests/12.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 38758    0 38758    0     0  55785      0 --:--:-- --:--:-- --:--:-- 55766
    patching file modules/varnish_focal_point_purge/varnish_focal_point_purge.module
    patching file modules/varnish_image_purge/src/Form/VarnishImagePurgeConfiguration.php
    patching file modules/varnish_image_purge/varnish_image_purge.module
    patching file modules/varnish_purge_tags/src/Plugin/Purge/TagsHeader/CacheTags.php
    patching file modules/varnish_purge_tags/src/Tests/CacheTagsTest.php
    patching file src/DebugCallGraphTrait.php
    patching file src/Entity/VarnishPurgerSettings.php
    patching file src/Form/VarnishBundledPurgerForm.php
    patching file src/Form/VarnishPurgerForm.php
    patching file src/Form/VarnishPurgerFormBase.php
    patching file src/Plugin/Purge/DiagnosticCheck/ConfigurationCheck.php
    patching file src/Plugin/Purge/Purger/VarnishBundledPurger.php
    patching file src/Plugin/Purge/Purger/VarnishPurger.php
    patching file src/Plugin/Purge/Purger/VarnishPurgerBase.php
    patching file src/Plugin/Purge/Purger/ZeroConfigPurger.php
    patching file src/Tests/VarnishBundledPurgerFormTest.php
    patching file src/Tests/VarnishPurgerFormTest.php
    patching file tests/src/Behat/features/bootstrap/VarnishPurgeFeatureContext.php
    āžœ  varnish_purge git:(8.x-2.2) āœ— ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml varnish_purge
    
    FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/varnish_purge/modules/varnish_image_purge/src/Form/VarnishImagePurgeConfiguration.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     45 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/varnish_purge/src/Tests/VarnishPurgerFormTestBase.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     49 | WARNING | Line exceeds 80 characters; contains 84 characters
    ------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-orgissue/web/modules/contrib/varnish_purge/src/Plugin/Purge/DiagnosticCheck/ConfigurationCheck.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------------
     32 | WARNING | Line exceeds 80 characters; contains 89 characters
    ----------------------------------------------------------------------------------------------------------------------------------------
    
    Time: 648ms; Memory: 12MB
    
    āžœ  contrib git:(main) āœ—

    Thank you.

  • Pipeline finished with Failed
    8 months ago
    Total: 47s
    #181988
  • First commit to issue fork.
  • Pipeline finished with Failed
    7 months ago
    Total: 43s
    #209289
  • Pipeline finished with Failed
    7 months ago
    #209307
  • Pipeline finished with Failed
    7 months ago
    Total: 44s
    #209316
  • Pipeline finished with Failed
    7 months ago
    Total: 43s
    #209322
  • Pipeline finished with Failed
    7 months ago
    Total: 45s
    #209329
  • Pipeline finished with Failed
    7 months ago
    Total: 44s
    #209339
  • Pipeline finished with Failed
    7 months ago
    Total: 35s
    #209360
  • Status changed to Needs review 7 months ago
  • šŸ‡®šŸ‡³India kalash-j jaipur

    I have fixed all the remaining issues of PHPCS.

  • Pipeline finished with Failed
    7 months ago
    Total: 41s
    #209773
  • Issue was unassigned.
  • Status changed to Needs work 7 months ago
  • šŸ‡®šŸ‡³India atul_ghate

    I have reviewed and applied your changes by converting the merge request into a patch. This resolved all issues except one, which can be fixed by running phpcbf. I am changing the status to "needs work".

  • Pipeline finished with Failed
    7 months ago
    Total: 45s
    #216373
  • Status changed to Needs review 7 months ago
  • šŸ‡®šŸ‡³India kalash-j jaipur

    @atul_ghate I have fixed that error
    there is no phpcs error now

  • Status changed to RTBC 7 months ago
  • šŸ‡®šŸ‡³India atul_ghate

    I have reviewed and applied latest MR 12. it resolved all the phpcs issues, moving to RTBC

Production build 0.71.5 2024