Problem/Motivation
Getting the following errors/warnings.
FILE: /tooltip_ckeditor/README.txt
---------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------
40 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
42 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
56 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
56 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------
FILE: /tooltip_ckeditor/src/Form/EditorTooltipDialog.php
---------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------
55 | ERROR | [x] Inline comments must start with a capital letter
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------
FILE: /tooltip_ckeditor/src/Form/TooltipCkeditorAdminSettingsForm.php
------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------
49 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
53 | ERROR | [x] Expected 1 blank line after function; 4 found
56 | ERROR | [ ] More than 2 empty lines are not allowed
57 | ERROR | [ ] More than 2 empty lines are not allowed
58 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: /tooltip_ckeditor/src/Plugin/CKEditorPlugin/Tooltip.php
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------
40 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
41 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
60 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
72 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
92 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run the following command
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml tooltip_ckeditor
Proposed resolution
The above errors need to be fixed.