inesh@dinesh:/var/www/html/drupalvb$ vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/civicrm_entity_leaflet/
FILE: /var/www/html/drupalvb/web/modules/contrib/civicrm_entity_leaflet/src/Plugin/views/style/CivicrmEntityAddressLeafletMap.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
414 | ERROR | [x] Use null coalesce operator instead of ternary operator.
493 | ERROR | [x] Use null coalesce operator instead of ternary operator.
647 | ERROR | [ ] The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
677 | ERROR | [ ] The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
Time: 1.05 secs; Memory: 16MB
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phpcsissues-3353192-2.patch | 2.28 KB | dineshkumarbollu |
Comments
Comment #2
dineshkumarbollu commentedHi
I created patch for this issue please review.
Thanks
Comment #3
avpadernoComment #4
markusa commentedOh wow, that's nice. Thank you!
Comment #5
skt-001 commentedpatch #2 fixes all the PHPCS error so moving status to RTBC.
Comment #7
dsdeiz commentedCommitted. Thanks!