Problem/Motivation
FILE: ...rs/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/tests/src/Kernel/EntitySubQueueAPITest.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
40 | ERROR | Public method name "EntitySubQueueAPITest::testSubqueueAPI" is not in lowerCamel format
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/tests/src/Kernel/EntityQueueCacheTagsTest.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | The array declaration extends to column 127 (the limit is 80). The array content should be split up over multiple
| | lines
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...contrib10/drupal10/modules/contrib/entityqueue/modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [ ] Missing short description in doc comment
105 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
240 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...l10/modules/contrib/entityqueue/modules/entityqueue_smartqueue/src/Plugin/views/argument/EntityQueueSmartQueueArgument.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueInterface.php
----------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------
15 | ERROR | Description for the @return value is missing
40 | ERROR | Description for the @return value is missing
52 | ERROR | Type hint "\Drupal\entityqueue\EntityQueueHandlerInterface" missing for $handler
65 | ERROR | Description for the @return value is missing
72 | ERROR | Description for the @return value is missing
84 | ERROR | Description for the @return value is missing
95 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntitySubqueueInterface.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
59 | ERROR | [x] Parameter comment must end with a full stop
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Form/EntitySubqueueForm.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------
287 | ERROR | The array declaration extends to column 145 (the limit is 80). The array content should be split up over
| | multiple lines
291 | ERROR | The array declaration extends to column 143 (the limit is 80). The array content should be split up over
| | multiple lines
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Form/EntityQueueForm.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------
248 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple
| | lines
248 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple
| | lines
374 | ERROR | The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple
| | lines
375 | ERROR | The array declaration extends to column 85 (the limit is 80). The array content should be split up over multiple
| | lines
415 | ERROR | The array declaration extends to column 139 (the limit is 80). The array content should be split up over
| | multiple lines
419 | ERROR | The array declaration extends to column 137 (the limit is 80). The array content should be split up over
| | multiple lines
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueHandlerInterface.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------
35 | ERROR | Description for the @return value is missing
45 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------------
FILE: ...rs/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntitySubqueueAccessControlHandler.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Case breaking statements must be followed by a single blank line
26 | WARNING | [ ] Code after the RETURN statement on line 25 cannot be executed
29 | ERROR | [x] Case breaking statements must be followed by a single blank line
29 | ERROR | [ ] The array declaration extends to column 162 (the limit is 80). The array content should be split up over
| | multiple lines
30 | WARNING | [ ] Code after the RETURN statement on line 29 cannot be executed
35 | ERROR | [ ] The array declaration extends to column 172 (the limit is 80). The array content should be split up over
| | multiple lines
39 | ERROR | [x] Case breaking statements must be followed by a single blank line
40 | WARNING | [ ] Code after the RETURN statement on line 39 cannot be executed
52 | ERROR | [ ] The array declaration extends to column 165 (the limit is 80). The array content should be split up over
| | multiple lines
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntitySubqueueListBuilder.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
65 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
---------------------------------------------------------------------------------------------------------------------------
FILE: ...Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueAccessControlHandler.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------
26 | WARNING | Code after the RETURN statement on line 24 cannot be executed
31 | ERROR | The array declaration extends to column 158 (the limit is 80). The array content should be split up over
| | multiple lines
33 | WARNING | Code after the RETURN statement on line 31 cannot be executed
36 | ERROR | The array declaration extends to column 158 (the limit is 80). The array content should be split up over
| | multiple lines
38 | WARNING | Code after the RETURN statement on line 36 cannot be executed
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Entity/EntityQueue.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------
147 | ERROR | [x] Use null coalesce operator instead of ternary operator.
330 | ERROR | [ ] The array declaration extends to column 99 (the limit is 80). The array content should be split up over
| | multiple lines
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...cuments/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Plugin/Field/FieldWidget/EntityqueueDragtableWidget.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | [x] Unused use statement
128 | ERROR | [ ] The array declaration extends to column 86 (the limit is 80). The array content should be split up over
| | multiple lines
146 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80). The array content should be split up over
| | multiple lines
146 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over
| | multiple lines
153 | WARNING | [x] A comma should follow the last multiline array item. Found: 'entityqueue-edit-item-link'
237 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
240 | ERROR | [ ] The array declaration extends to column 130 (the limit is 80). The array content should be split up over
| | multiple lines
349 | ERROR | [x] Use null coalesce operator instead of ternary operator.
350 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Plugin/views/sort/EntityQueuePosition.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
69 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------------------------------------------------------
FILE: .../sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Plugin/views/sort/EntityQueueInQueue.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
69 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...ahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Plugin/views/field/EntityQueuePosition.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
69 | ERROR | Doc comment short description must start with a capital letter
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Plugin/views/relationship/EntityQueueRelationship.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
186 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Annotation/EntityQueueHandler.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
33 | ERROR | The @var tag must be the first tag in a member variable comment
-------------------------------------------------------------------------------------------------------------------------------
FILE: ...rs/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/Controller/EntityQueueUIController.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | [x] Data types in @var tags need to be fully namespaced
35 | ERROR | [x] Doc comment short description must end with a full stop
37 | ERROR | [x] Data types in @param tags need to be fully namespaced
51 | ERROR | [x] Expected 1 blank line after function; 2 found
114 | ERROR | [ ] The array declaration extends to column 190 (the limit is 80). The array content should be split up over
| | multiple lines
125 | ERROR | [ ] The array declaration extends to column 187 (the limit is 80). The array content should be split up over
| | multiple lines
234 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueRepositoryInterface.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueListBuilder.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
127 | ERROR | The array declaration extends to column 90 (the limit is 80). The array content should be split up over multiple
| | lines
127 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple
| | lines
--------------------------------------------------------------------------------------------------------------------------------
FILE: ...rs/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueHandlerPluginCollection.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------
41 | ERROR | Description for the @return value is missing
43 | WARNING | Possible useless method overriding detected
--------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueuePermissions.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
18 | ERROR | Description for the @return value is missing
36 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------
FILE: /Users/sahil.goyal/Documents/MySites/contrib10/drupal10/modules/contrib/entityqueue/src/EntityQueueRepository.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------
10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_[2]-[6].txt | 2.49 KB | alanmoreira |
| #6 | 3334046-6.patch | 28.99 KB | alanmoreira |
| #4 | PHPCS issues.png | 603.69 KB | hardikpandya |
| #2 | 3334046-2.patch | 20.16 KB | sahil.goyal |
Issue fork entityqueue-3334046
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sahil.goyal commentedfixing phpcs coding standard Issue.
Comment #3
sahil.goyal commentedComment #4
hardikpandya commentedThere are still pending phpcs issues.
Comment #5
alanmoreira commentedI'll work on this.
Comment #6
alanmoreira commentedI worked to fix the PHPCS errors and warnings but there is still one warning left. Hope it helps :)
Comment #9
Charchil Khandelwal commentedCreated MR!
Please review.
Comment #10
paraderojether commentedI reviewed MR!15, and there are still remaining issues reported by phpcs shown below:
Please check.
Thank You.
Comment #12
sakthi_dev commentedPlease review with the dev branch. Resolved the other issues.
Comment #13
amateescu commentedNeeds a rebase.
Comment #14
anybody