$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml post_api/
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(
FILE: C:\Users\SI-001\Downloads\post_api\post_api.module
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
45 | WARNING | [x] '@todo: add config setting for granular logging.' should
| | match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: C:\Users\SI-001\Downloads\post_api\src\Form\PostApiQueueForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
19 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
FILE: C:\Users\SI-001\Downloads\post_api\src\Form\PostApiSettingsForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
13 | WARNING | The class short comment should describe what the class does and
| | not simply repeat the class name
--------------------------------------------------------------------------------
FILE: ...sers\SI-001\Downloads\post_api\src\Plugin\QueueWorker\PostApiQueueBase.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
176 | ERROR | [x] Use null coalesce operator instead of ternary operator.
178 | ERROR | [x] Use null coalesce operator instead of ternary operator.
226 | WARNING | [x] '@todo: allow API rate limit customization based on more
| | granular time' should match the format '@todo Fix problem
| | X here.'
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: C:\Users\SI-001\Downloads\post_api\src\Service\AddToQueue.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
80 | WARNING | [x] '@todo: display warning if uid is not set for the item.'
| | should match the format '@todo Fix problem X here.'
97 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 5.06 secs; Memory: 10MB
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | patch-applied.png | 44.13 KB | shamir.vs |
| #2 | drupal-coding-standard-issue-3303848-2.patch | 3.65 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
shamir.vs commentedHi @rakhi-soni, Patch #2 applied successfully and all phpcs issues are fixed
Comment #5
swirtThank you both for your contributions. This will go out with the 2.0.2 release.
Comment #6
swirt