- Issue created by @abhiyanshu
It would be great to address the PHPCS issues listed below.
NOTE: There are several other issues beyond those mentioned, so for a complete list, please run the following command:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml mail_box_management/
FILE: /var/www/web/modules/contrib/mail_box_management/mail_box_management.module
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------
173 | WARNING | Unused variable $picked_color.
230 | WARNING | Unused variable $name.
---------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide/skin.css
------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 31 LINES
------------------------------------------------------------------------------------------------
145 | ERROR | [ ] Class definition is empty
159 | ERROR | [x] CSS colors must be defined in lowercase; expected #ffe89d but found #FFE89D
164 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2d574 but found #F2D574
168 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8c657 but found #E8C657
171 | ERROR | [ ] Class definition is empty
185 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2bfbf but found #F2BFBF
190 | ERROR | [x] CSS colors must be defined in lowercase; expected #e9a4a4 but found #E9A4A4
194 | ERROR | [x] CSS colors must be defined in lowercase; expected #ee9494 but found #EE9494
625 | ERROR | [ ] Class definition is empty
665 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
666 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
675 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
676 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
1727 | ERROR | [x] CSS colors must be defined in lowercase; expected #2d6adf but found #2D6ADF
1899 | ERROR | [ ] Class definition is empty
1908 | ERROR | [ ] Class definition is empty
2008 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2009 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2324 | ERROR | [ ] Class definition is empty
2330 | ERROR | [ ] Class definition is empty
2336 | ERROR | [ ] Class definition is empty
2404 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8f1f8 but found #E8F1F8
2406 | ERROR | [x] CSS colors must be defined in lowercase; expected #086be6 but found #086BE6
2415 | ERROR | [x] CSS colors must be defined in lowercase; expected #b4d7ff but found #B4D7FF
2418 | ERROR | [x] CSS colors must be defined in lowercase; expected #d9edf7 but found #D9EDF7
3381 | ERROR | [ ] Class definition is empty
3742 | ERROR | [ ] Class definition is empty
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide/content.css
-----------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide/content.inline.css
----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5-dark/skin.css
---------------------------------------------------------------------------------------------------
FOUND 39 ERRORS AFFECTING 39 LINES
---------------------------------------------------------------------------------------------------
4 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
145 | ERROR | [ ] Class definition is empty
159 | ERROR | [x] CSS colors must be defined in lowercase; expected #ffe89d but found #FFE89D
160 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
164 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2d574 but found #F2D574
165 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
168 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8c657 but found #E8C657
169 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
171 | ERROR | [ ] Class definition is empty
185 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2bfbf but found #F2BFBF
186 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
190 | ERROR | [x] CSS colors must be defined in lowercase; expected #e9a4a4 but found #E9A4A4
191 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
194 | ERROR | [x] CSS colors must be defined in lowercase; expected #ee9494 but found #EE9494
195 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
625 | ERROR | [ ] Class definition is empty
665 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
666 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
675 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
676 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
1727 | ERROR | [x] CSS colors must be defined in lowercase; expected #2d6adf but found #2D6ADF
1899 | ERROR | [ ] Class definition is empty
1908 | ERROR | [ ] Class definition is empty
2008 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2009 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2324 | ERROR | [ ] Class definition is empty
2330 | ERROR | [ ] Class definition is empty
2336 | ERROR | [ ] Class definition is empty
2404 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8f1f8 but found #E8F1F8
2406 | ERROR | [x] CSS colors must be defined in lowercase; expected #086be6 but found #086BE6
2415 | ERROR | [x] CSS colors must be defined in lowercase; expected #b4d7ff but found #B4D7FF
2418 | ERROR | [x] CSS colors must be defined in lowercase; expected #d9edf7 but found #D9EDF7
3153 | ERROR | [x] CSS colors must be defined in lowercase; expected #2a3746 but found #2A3746
3381 | ERROR | [ ] Class definition is empty
3742 | ERROR | [ ] Class definition is empty
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 29 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5-dark/content.css
------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------
259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
540 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
541 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5-dark/content.inline.css
-------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide-dark/skin.css
------------------------------------------------------------------------------------------------
FOUND 49 ERRORS AFFECTING 49 LINES
------------------------------------------------------------------------------------------------
79 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
145 | ERROR | [ ] Class definition is empty
159 | ERROR | [x] CSS colors must be defined in lowercase; expected #ffe89d but found #FFE89D
164 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2d574 but found #F2D574
168 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8c657 but found #E8C657
171 | ERROR | [ ] Class definition is empty
185 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2bfbf but found #F2BFBF
190 | ERROR | [x] CSS colors must be defined in lowercase; expected #e9a4a4 but found #E9A4A4
194 | ERROR | [x] CSS colors must be defined in lowercase; expected #ee9494 but found #EE9494
625 | ERROR | [ ] Class definition is empty
665 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
666 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
675 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
676 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
1305 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
1727 | ERROR | [x] CSS colors must be defined in lowercase; expected #ffffff but found #FFFFFF
1764 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
1777 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
1899 | ERROR | [ ] Class definition is empty
1908 | ERROR | [ ] Class definition is empty
2008 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2009 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2324 | ERROR | [ ] Class definition is empty
2330 | ERROR | [ ] Class definition is empty
2336 | ERROR | [ ] Class definition is empty
2381 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2395 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2404 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8f1f8 but found #E8F1F8
2406 | ERROR | [x] CSS colors must be defined in lowercase; expected #086be6 but found #086BE6
2415 | ERROR | [x] CSS colors must be defined in lowercase; expected #b4d7ff but found #B4D7FF
2418 | ERROR | [x] CSS colors must be defined in lowercase; expected #d9edf7 but found #D9EDF7
2538 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2633 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2668 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2685 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2702 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2718 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2742 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
2856 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
3305 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
3311 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
3372 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
3381 | ERROR | [ ] Class definition is empty
3658 | ERROR | [x] CSS colors must be defined in lowercase; expected #222f3e but found #222F3E
3742 | ERROR | [ ] Class definition is empty
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 39 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide-dark/content.css
--------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------
259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
540 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
541 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/oxide-dark/content.inline.css
---------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5/skin.css
------------------------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 31 LINES
------------------------------------------------------------------------------------------------
145 | ERROR | [ ] Class definition is empty
159 | ERROR | [x] CSS colors must be defined in lowercase; expected #ffe89d but found #FFE89D
164 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2d574 but found #F2D574
168 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8c657 but found #E8C657
171 | ERROR | [ ] Class definition is empty
185 | ERROR | [x] CSS colors must be defined in lowercase; expected #f2bfbf but found #F2BFBF
190 | ERROR | [x] CSS colors must be defined in lowercase; expected #e9a4a4 but found #E9A4A4
194 | ERROR | [x] CSS colors must be defined in lowercase; expected #ee9494 but found #EE9494
625 | ERROR | [ ] Class definition is empty
665 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
666 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
675 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
676 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
1727 | ERROR | [x] CSS colors must be defined in lowercase; expected #2d6adf but found #2D6ADF
1899 | ERROR | [ ] Class definition is empty
1908 | ERROR | [ ] Class definition is empty
2008 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2009 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
2176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
2324 | ERROR | [ ] Class definition is empty
2330 | ERROR | [ ] Class definition is empty
2336 | ERROR | [ ] Class definition is empty
2404 | ERROR | [x] CSS colors must be defined in lowercase; expected #e8f1f8 but found #E8F1F8
2406 | ERROR | [x] CSS colors must be defined in lowercase; expected #086be6 but found #086BE6
2415 | ERROR | [x] CSS colors must be defined in lowercase; expected #b4d7ff but found #B4D7FF
2418 | ERROR | [x] CSS colors must be defined in lowercase; expected #d9edf7 but found #D9EDF7
3381 | ERROR | [ ] Class definition is empty
3742 | ERROR | [ ] Class definition is empty
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5/content.css
-------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/skins/ui/tinymce-5/content.inline.css
--------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------
173 | ERROR | [x] CSS colors must be defined in lowercase; expected #dd4a68 but found #DD4A68
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
279 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
559 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
560 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/lib/tinymce/README.md
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------
7 | WARNING | Line exceeds 80 characters; contains 309 characters
9 | WARNING | Line exceeds 80 characters; contains 349 characters
14 | WARNING | Line exceeds 80 characters; contains 127 characters
19 | WARNING | Line exceeds 80 characters; contains 124 characters
37 | WARNING | Line exceeds 80 characters; contains 84 characters
55 | WARNING | Line exceeds 80 characters; contains 263 characters
69 | WARNING | Line exceeds 80 characters; contains 91 characters
----------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/src/Plugin/ConfigurationHelper.php
-----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
105 | WARNING | Unused bound variable $configuration_key.
-----------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/src/Plugin/EntitySaver.php
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------
47 | WARNING | Unused variable $key.
83 | WARNING | Unused variable $key.
---------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/src/Server/Imap/EmailContentManager.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------
118 | WARNING | Unused variable $fromHost.
121 | WARNING | Unused variable $toHost.
----------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/src/Form/ConfigurationForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------------------------
104 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
110 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
116 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
122 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
132 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
138 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
144 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
198 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/web/modules/contrib/mail_box_management/src/Form/MailBoxManagementSettingForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
116 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
Time: 9.23 secs; Memory: 118MB
Run the command,
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml mail_box_management/
Fix the PHPCS issues.
Active
1.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.