- Issue created by @urvashi_vora
- Status changed to Needs work
10 months ago 7:17am 24 January 2024 - ๐ฎ๐ณIndia Ashutosh Ahirwal India
Provided patch get applied cleanly.
But still there are so many issue/error found by phpcs
Used command with arguments./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/required_content
FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/required_content/src/Form/SettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface.
178 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
179 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
280 | WARNING | [ ] Unused variable $bundle.
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/required_content/src/EventSubscriber/RequiredContentSubscriber.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\Config.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/required_content/src/EventSubscriber/MissingContentSubscriber.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 2 WARNINGS AFFECTING 14 LINES
------------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Missing class doc comment
13 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [x] Missing function doc comment
17 | ERROR | [x] Expected 1 blank line before function; 2 found
20 | ERROR | [x] Expected 1 blank line after function; 2 found
58 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
59 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
67 | ERROR | [x] Line indented incorrectly; expected 5 spaces, found 4
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------Time: 301ms; Memory: 12MB
- First commit to issue fork.
- Status changed to Needs review
10 months ago 6:40am 25 January 2024 - ๐ฎ๐ณIndia viren18febS
Hi , i have fixed all the pending reported issues.
Please review - Status changed to Needs work
4 months ago 3:35pm 30 July 2024 - ๐ต๐ญPhilippines roberttabigue
Hi @viren18febS,
After applying your Patch #14 to the Required Content module against 1.0.x-dev on Drupal 10, I still see a 1 PHPCS error.
Please see the attached file for reference.
I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js required_content/
I'm moving this to โNeeds workโ for now.
Thank you!