Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
FILE: .../web/modules/custom/dropdown_language/README.md
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------
55 | WARNING | Line exceeds 80 characters; contains 81 characters
59 | WARNING | Line exceeds 80 characters; contains 85 characters
61 | WARNING | Line exceeds 80 characters; contains 88 characters
---------------------------------------------------------------------------------
FILE: .../web/modules/custom/dropdown_language/src/Plugin/Block/DropdownLanguage.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
-------------------------------------------------------------------------------------------------------------------------
55 | ERROR | [x] Data types in @var tags need to be fully namespaced
125 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing
| | parentheses
162 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
193 | ERROR | [x] Use null coalesce operator instead of ternary operator.
228 | ERROR | [x] There should be no white space after an opening "("
272 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes