Fix the issues reported by phpcs

Created on 13 April 2023, over 1 year ago
Updated 28 April 2023, over 1 year ago

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/batch_import/
FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/src/Form/BatchImportForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
79 | WARNING | [x] '@TODO Remove, just for testing.' should match the format '@todo Fix problem X here.'
81 | ERROR | [ ] Comment indentation error, expected only 1 spaces
82 | WARNING | [x] There must be no blank line following an inline comment
82 | WARNING | [ ] There must be no blank line following an inline comment
146 | WARNING | [x] '@TODO Should show some feedback on the form in this case.' should match the format '@todo Fix problem X here.'
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/src/Plugin/BatchMigrationProcessorInterface.php
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/src/MigrationActivationService.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
14 | WARNING | [x] '@TODO Look into removing this.' should match the format '@todo Fix problem X here.'
210 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
213 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
284 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
285 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
331 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
335 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
341 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/src/Compiler/BatchImportServicePass.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
29 | WARNING | Unused variable $key.
44 | WARNING | Line exceeds 80 characters; contains 87 characters
-----------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/batch_import.module
---------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 15 LINES
---------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Missing file doc comment
2 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
4 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
9 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
10 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
11 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
12 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
13 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
15 | ERROR | [x] Whitespace found at end of line
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
18 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
19 | ERROR | [x] Whitespace found at end of line
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/batch_import/README.md
-----------------------------------------------------------------------
FOUND 0 ERRORS AND 21 WARNINGS AFFECTING 21 LINES
-----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 102 characters
34 | WARNING | Line exceeds 80 characters; contains 99 characters
47 | WARNING | Line exceeds 80 characters; contains 114 characters
50 | WARNING | Line exceeds 80 characters; contains 236 characters
52 | WARNING | Line exceeds 80 characters; contains 225 characters
54 | WARNING | Line exceeds 80 characters; contains 266 characters
57 | WARNING | Line exceeds 80 characters; contains 186 characters
59 | WARNING | Line exceeds 80 characters; contains 122 characters
75 | WARNING | Line exceeds 80 characters; contains 86 characters
76 | WARNING | Line exceeds 80 characters; contains 87 characters
77 | WARNING | Line exceeds 80 characters; contains 97 characters
78 | WARNING | Line exceeds 80 characters; contains 171 characters
81 | WARNING | Line exceeds 80 characters; contains 93 characters
110 | WARNING | Line exceeds 80 characters; contains 121 characters
112 | WARNING | Line exceeds 80 characters; contains 179 characters
113 | WARNING | Line exceeds 80 characters; contains 150 characters
116 | WARNING | Line exceeds 80 characters; contains 117 characters
118 | WARNING | Line exceeds 80 characters; contains 186 characters
119 | WARNING | Line exceeds 80 characters; contains 127 characters
121 | WARNING | Line exceeds 80 characters; contains 137 characters
124 | WARNING | Line exceeds 80 characters; contains 118 characters
-----------------------------------------------------------------------

Time: 2.26 secs; Memory: 12MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024