Problem/Motivation
Getting following error/warnings
FILE: /app/modules/contrib/menu_block/README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
11 | WARNING | Line exceeds 80 characters; contains 81 characters
----------------------------------------------------------------------
FILE: /app/modules/contrib/menu_block/menu_block.module
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
17 | ERROR | [x] Use null coalesce operator instead of ternary operator.
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: /app/modules/contrib/menu_block/src/Plugin/Block/MenuBlock.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /app/modules/contrib/menu_block/tests/modules/menu_block_test/menu_block_test.routing.yml
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------
7 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
15 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
23 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
31 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
39 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
------------------------------------------------------------------------------------------------------------------
Time: 584ms; Memory: 14MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/menu_block/
Proposed resolution
Above error/warnings need to be fixed