Problem/Motivation
Getting following error/warnings.
FILE: /var/www/html/modules/contrib/field_is_empty/tests/src/Traits/FieldIsEmptyFieldCreationTrait.php
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
22 | ERROR | Type hint "array" missing for $field_settings
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/field_is_empty/tests/src/Functional/FieldIsEmptyDropdownListTest.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
46 | ERROR | [ ] The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
64 | WARNING | [x] A comma should follow the last multiline array item. Found: 'administer node fields'
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/field_is_empty/tests/src/Kernel/FieldIsEmptyFieldTest.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------
50 | WARNING | [x] A comma should follow the last multiline array item. Found: 'No'
56 | ERROR | [x] Doc comment short description must end with a full stop
59 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
67 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
73 | ERROR | [x] Expected 1 blank line after function; 0 found
74 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/modules/contrib/field_is_empty/modules/field_is_empty_example/field_is_empty_example.module
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------
Time: 1.17 secs; Memory: 6MB
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/field_is_empty/
Proposed resolution
Above error/warnings need to be fixed.