Need to check and remove error according Drupal coding standards.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cmsMinds created an issue. See original summary.

joos’s picture

Thanks for feedback. Ill have a look at that. If you wish to help me out out please let me know.

cmsminds’s picture

StatusFileSize
new21.08 KB

please apply the patch.

urvashi_vora’s picture

Assigned: Unassigned » urvashi_vora

Hi,

I am looking after this.

urvashi_vora’s picture

Status: Active » Needs work

@cmsMinds,

Your patch applied cleanly, but still, some issues are there, I am working on them, and will create a patch.

Here is the output

urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib/swish_payment-2874396$ git apply -v coding-standards_8.patch
coding-standards_8.patch:253: trailing whitespace.
  
Checking patch README.txt...
Checking patch assets/css/swish-payment-pending.css...
Checking patch assets/img/loading.gif...
Checking patch assets/js/swish-payment-pending.js...
Checking patch composer.json...
Checking patch config/install/swish_payment.swishpayment.yml...
Checking patch modules/swish_payment_block/composer.json...
Checking patch modules/swish_payment_block/config/install/swish_payment_block.swishpaymentblock.yml...
Checking patch modules/swish_payment_block/src/Form/SwishPaymentBlockForm.php...
Checking patch modules/swish_payment_block/src/Plugin/Block/SwishPaymentBlock.php...
Checking patch modules/swish_payment_block/src/Tests/LoadTest.php...
Checking patch modules/swish_payment_block/swish_payment_block.info.yml...
Checking patch modules/swish_payment_block/swish_payment_block.module...
Checking patch modules/swish_payment_block/templates/swish_payment_block.html.twig...
Checking patch src/Controller/CallbackController.php...
Checking patch src/Entity/SwishTransaction.php...
Checking patch src/Entity/SwishTransactionInterface.php...
Checking patch src/Entity/SwishTransactionViewsData.php...
Checking patch src/Form/SwishPaymentForm.php...
Checking patch src/Form/SwishSettingsForm.php...
Checking patch src/Form/SwishTransactionDeleteForm.php...
Checking patch src/Form/SwishTransactionForm.php...
Checking patch src/Form/SwishTransactionSettingsForm.php...
Checking patch src/SwishClient.php...
Checking patch src/SwishTransactionAccessControlHandler.php...
Checking patch src/SwishTransactionHtmlRouteProvider.php...
Checking patch src/SwishTransactionListBuilder.php...
Checking patch src/Tests/LoadTest.php...
Checking patch swish_payment.info.yml...
Checking patch swish_payment.libraries.yml...
Checking patch swish_payment.links.action.yml...
Checking patch swish_payment.links.menu.yml...
Checking patch swish_payment.links.task.yml...
Checking patch swish_payment.module...
Checking patch swish_payment.permissions.yml...
Checking patch swish_payment.routing.yml...
Checking patch swish_transaction.page.inc...
Checking patch templates/swish_transaction.html.twig...
Applied patch README.txt cleanly.
Applied patch assets/css/swish-payment-pending.css cleanly.
Applied patch assets/img/loading.gif cleanly.
Applied patch assets/js/swish-payment-pending.js cleanly.
Applied patch composer.json cleanly.
Applied patch config/install/swish_payment.swishpayment.yml cleanly.
Applied patch modules/swish_payment_block/composer.json cleanly.
Applied patch modules/swish_payment_block/config/install/swish_payment_block.swishpaymentblock.yml cleanly.
Applied patch modules/swish_payment_block/src/Form/SwishPaymentBlockForm.php cleanly.
Applied patch modules/swish_payment_block/src/Plugin/Block/SwishPaymentBlock.php cleanly.
Applied patch modules/swish_payment_block/src/Tests/LoadTest.php cleanly.
Applied patch modules/swish_payment_block/swish_payment_block.info.yml cleanly.
Applied patch modules/swish_payment_block/swish_payment_block.module cleanly.
Applied patch modules/swish_payment_block/templates/swish_payment_block.html.twig cleanly.
Applied patch src/Controller/CallbackController.php cleanly.
Applied patch src/Entity/SwishTransaction.php cleanly.
Applied patch src/Entity/SwishTransactionInterface.php cleanly.
Applied patch src/Entity/SwishTransactionViewsData.php cleanly.
Applied patch src/Form/SwishPaymentForm.php cleanly.
Applied patch src/Form/SwishSettingsForm.php cleanly.
Applied patch src/Form/SwishTransactionDeleteForm.php cleanly.
Applied patch src/Form/SwishTransactionForm.php cleanly.
Applied patch src/Form/SwishTransactionSettingsForm.php cleanly.
Applied patch src/SwishClient.php cleanly.
Applied patch src/SwishTransactionAccessControlHandler.php cleanly.
Applied patch src/SwishTransactionHtmlRouteProvider.php cleanly.
Applied patch src/SwishTransactionListBuilder.php cleanly.
Applied patch src/Tests/LoadTest.php cleanly.
Applied patch swish_payment.info.yml cleanly.
Applied patch swish_payment.libraries.yml cleanly.
Applied patch swish_payment.links.action.yml cleanly.
Applied patch swish_payment.links.menu.yml cleanly.
Applied patch swish_payment.links.task.yml cleanly.
Applied patch swish_payment.module cleanly.
Applied patch swish_payment.permissions.yml cleanly.
Applied patch swish_payment.routing.yml cleanly.
Applied patch swish_transaction.page.inc cleanly.
Applied patch templates/swish_transaction.html.twig cleanly.
warning: 1 line adds whitespace errors.
urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib/swish_payment-2874396$ cd ..
urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig swish_payment-2874396/

FILE: ..._cont/web/modules/contrib/swish_payment-2874396/swish_transaction.page.inc
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 24 | WARNING | Unused variable $swish_transaction.
--------------------------------------------------------------------------------


FILE: ...tion/d8_cont/web/modules/contrib/swish_payment-2874396/src/SwishClient.php
--------------------------------------------------------------------------------
FOUND 20 ERRORS AND 4 WARNINGS AFFECTING 24 LINES
--------------------------------------------------------------------------------
  13 | ERROR   | Doc comment short description must be on a single line,
     |         | further text should be a separate paragraph
  22 | ERROR   | Missing short description in doc comment
  27 | ERROR   | Missing short description in doc comment
  32 | ERROR   | Doc comment is empty
  40 | ERROR   | Missing short description in doc comment
  49 | ERROR   | Description for the @return value is missing
  53 | ERROR   | The array declaration extends to column 110 (the limit is 80).
     |         | The array content should be split up over multiple lines
  85 | WARNING | t() calls should be avoided in classes, use
     |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
  91 | WARNING | t() calls should be avoided in classes, use
     |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
  97 | ERROR   | Missing short description in doc comment
 100 | ERROR   | Description for the @return value is missing
 133 | WARNING | t() calls should be avoided in classes, use
     |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
 137 | WARNING | t() calls should be avoided in classes, use
     |         | \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         | $this->t() instead
 142 | ERROR   | Missing short description in doc comment
 143 | ERROR   | Description for the @return value is missing
 177 | ERROR   | Missing short description in doc comment
 183 | ERROR   | Parameter comment must start with a capital letter
 184 | ERROR   | Description for the @return value is missing
 198 | ERROR   | Missing short description in doc comment
 199 | ERROR   | Missing parameter comment
 200 | ERROR   | Description for the @return value is missing
 214 | ERROR   | Missing short description in doc comment
 215 | ERROR   | Missing parameter comment
 216 | ERROR   | Description for the @return value is missing
--------------------------------------------------------------------------------


FILE: .../web/modules/contrib/swish_payment-2874396/src/Entity/SwishTransaction.php
--------------------------------------------------------------------------------
FOUND 68 ERRORS AND 5 WARNINGS AFFECTING 62 LINES
--------------------------------------------------------------------------------
  62 | ERROR   | [x] Short array syntax must be used to define arrays
 245 | ERROR   | [x] Expected 1 blank line after function; 2 found
 293 | ERROR   | [ ] Missing short description in doc comment
 294 | ERROR   | [ ] Description for the @return value must be on the next line
 315 | ERROR   | [x] Expected 1 blank line after function; 3 found
 318 | ERROR   | [ ] More than 2 empty lines are not allowed
 322 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 322 | ERROR   | [x] 2 spaces found before inline comment; expected "// public
     |         |     function isPublished() {" but found "//  public function
     |         |     isPublished() {"
 322 | ERROR   | [x] Inline comments must start with a capital letter
 323 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 323 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
 324 | WARNING | [ ] There must be no blank line following an inline comment
 324 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 324 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 329 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 329 | ERROR   | [x] 2 spaces found before inline comment; expected "// public
     |         |     function setPublished($published) {" but found "//  public
     |         |     function setPublished($published) {"
 329 | ERROR   | [x] Inline comments must start with a capital letter
 330 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 330 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
 331 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 332 | WARNING | [ ] There must be no blank line following an inline comment
 332 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 332 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
 339 | ERROR   | [x] Expected 1 blank line after function; 2 found
 344 | ERROR   | [x] There must be no blank lines after the function comment
 356 | ERROR   | [x] Short array syntax must be used to define arrays
 361 | ERROR   | [x] Short array syntax must be used to define arrays
 364 | ERROR   | [x] Short array syntax must be used to define arrays
 377 | ERROR   | [x] Short array syntax must be used to define arrays
 382 | ERROR   | [x] Short array syntax must be used to define arrays
 387 | ERROR   | [x] Short array syntax must be used to define arrays
 397 | ERROR   | [x] Short array syntax must be used to define arrays
 402 | ERROR   | [x] Short array syntax must be used to define arrays
 407 | ERROR   | [x] Short array syntax must be used to define arrays
 416 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
 417 | ERROR   | [x] Short array syntax must be used to define arrays
 422 | ERROR   | [x] Short array syntax must be used to define arrays
 427 | ERROR   | [x] Short array syntax must be used to define arrays
 436 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
 437 | ERROR   | [x] Short array syntax must be used to define arrays
 443 | ERROR   | [x] Short array syntax must be used to define arrays
 448 | ERROR   | [x] Short array syntax must be used to define arrays
 458 | ERROR   | [x] Short array syntax must be used to define arrays
 463 | ERROR   | [x] Short array syntax must be used to define arrays
 468 | ERROR   | [x] Short array syntax must be used to define arrays
 474 | ERROR   | [x] Functions must not contain multiple empty lines in a row;
     |         |     found 2 empty lines
 479 | ERROR   | [x] Short array syntax must be used to define arrays
 484 | ERROR   | [x] Short array syntax must be used to define arrays
 488 | ERROR   | [x] Array closing indentation error, expected 6 spaces but
     |         |     found 8
 489 | ERROR   | [x] Short array syntax must be used to define arrays
 492 | ERROR   | [x] Array closing indentation error, expected 6 spaces but
     |         |     found 8
 499 | ERROR   | [x] Short array syntax must be used to define arrays
 503 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
 504 | ERROR   | [x] Short array syntax must be used to define arrays
 509 | ERROR   | [x] Short array syntax must be used to define arrays
 515 | ERROR   | [x] Functions must not contain multiple empty lines in a row;
     |         |     found 2 empty lines
 524 | ERROR   | [x] Short array syntax must be used to define arrays
 528 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
 529 | ERROR   | [x] Short array syntax must be used to define arrays
 534 | ERROR   | [x] Short array syntax must be used to define arrays
 544 | ERROR   | [x] Short array syntax must be used to define arrays
 548 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
 549 | ERROR   | [x] Short array syntax must be used to define arrays
 554 | ERROR   | [x] Short array syntax must be used to define arrays
 564 | ERROR   | [x] Short array syntax must be used to define arrays
 568 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
 569 | ERROR   | [x] Short array syntax must be used to define arrays
 574 | ERROR   | [x] Short array syntax must be used to define arrays
 581 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 582 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 583 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 583 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 584 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 63 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...les/contrib/swish_payment-2874396/src/Entity/SwishTransactionViewsData.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
 19 | WARNING | [x] There must be no blank line following an inline comment
 19 | WARNING | [ ] There must be no blank line following an inline comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...les/contrib/swish_payment-2874396/src/Entity/SwishTransactionInterface.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
 14 | ERROR   | [x] Expected 1 space before "ContentEntityInterface"; 2 found
 16 | WARNING | [ ] There must be no blank line following an inline comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...odules/contrib/swish_payment-2874396/src/Controller/CallbackController.php
--------------------------------------------------------------------------------
FOUND 13 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------------
  14 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
  18 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
  26 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  27 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  37 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
     |         |     but found "true"
  41 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
  47 | ERROR   | [ ] The $_GET super global must not be accessed directly;
     |         |     inject the request.stack service and use
     |         |     $stack->getCurrentRequest()->query->get('destination')
     |         |     instead
  48 | ERROR   | [x] Inline control structures are not allowed
  48 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  55 | ERROR   | [ ] The array declaration extends to column 89 (the limit is
     |         |     80). The array content should be split up over multiple
     |         |     lines
  63 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
  69 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
     |         |     but found "false"
  69 | ERROR   | [x] There should be no white space before a closing "]"
  70 | ERROR   | [x] Inline control structures are not allowed
  70 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 101 | ERROR   | [x] Expected 1 blank line after function; 0 found
 102 | ERROR   | [x] The closing brace for the class must have an empty line
     |         |     before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: .../modules/contrib/swish_payment-2874396/src/SwishTransactionListBuilder.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 32 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...nt/web/modules/contrib/swish_payment-2874396/src/Form/SwishPaymentForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
 15 | WARNING | The class short comment should describe what the class does and
    |         | not simply repeat the class name
 73 | ERROR   | The array declaration extends to column 140 (the limit is 80).
    |         | The array content should be split up over multiple lines
--------------------------------------------------------------------------------


FILE: ...t/web/modules/contrib/swish_payment-2874396/src/Form/SwishSettingsForm.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
   3 | ERROR   | [x] Namespaced classes, interfaces and traits should not begin
     |         |     with a file doc comment
   5 | ERROR   | [x] Doc comment short description must end with a full stop
  19 | ERROR   | [x] Expected 1 blank line before function; 0 found
  95 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
     |         |     injection instead
 108 | ERROR   | [x] Whitespace found at end of line
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...es/contrib/swish_payment-2874396/src/Form/SwishTransactionSettingsForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 14 | WARNING | The class short comment should describe what the class does and
    |         | not simply repeat the class name
--------------------------------------------------------------------------------


FILE: ...eb/modules/contrib/swish_payment-2874396/src/Form/SwishTransactionForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 19 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
 22 | WARNING | [ ] Unused variable $entity.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...modules/contrib/swish_payment-2874396/assets/css/swish-payment-pending.css
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...2874396/modules/swish_payment_block/src/Plugin/Block/SwishPaymentBlock.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 72 | WARNING | \Drupal calls should be avoided in classes, use dependency
    |         | injection instead
--------------------------------------------------------------------------------


FILE: ...b/swish_payment-2874396/modules/swish_payment_block/src/Tests/LoadTest.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 13 | ERROR | [x] Expected 1 space before opening brace; found 0
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...ent-2874396/modules/swish_payment_block/src/Form/SwishPaymentBlockForm.php
--------------------------------------------------------------------------------
FOUND 31 ERRORS AND 2 WARNINGS AFFECTING 19 LINES
--------------------------------------------------------------------------------
   9 | ERROR   | [x] There must be one blank line after the last USE statement;
     |         |     2 found;
  16 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
  23 | ERROR   | [x] Expected 1 blank line before function; 2 found
  30 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL"
     |         |     but found "null"
  37 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  47 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
     |         |     but found "true"
  52 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  66 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  74 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  75 | ERROR   | [x] Array indentation error, expected 6 spaces but found 8
  81 | ERROR   | [x] Expected 3 space(s) before asterisk; 4 found
  82 | ERROR   | [x] Expected 3 space(s) before asterisk; 4 found
  84 | ERROR   | [x] Inline control structures are not allowed
  84 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
  85 | WARNING | [ ] t() calls should be avoided in classes, use
     |         |     \Drupal\Core\StringTranslation\StringTranslationTrait and
     |         |     $this->t() instead
 101 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 104 | ERROR   | [ ] The array declaration extends to column 136 (the limit is
     |         |     80). The array content should be split up over multiple
     |         |     lines
 104 | ERROR   | [x] Expected 1 space between "'https'" and double arrow; 0
     |         |     found
 104 | ERROR   | [x] Expected 1 space between double arrow and "TRUE"; 0 found
 104 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 104 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 104 | ERROR   | [x] Expected 1 space between "'absolute'" and double arrow; 0
     |         |     found
 104 | ERROR   | [x] Expected 1 space between double arrow and "TRUE"; 0 found
 104 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 104 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 104 | ERROR   | [x] There should be no white space before a closing ")"
 110 | ERROR   | [x] Expected 1 space between "'absolute'" and double arrow; 0
     |         |     found
 110 | ERROR   | [x] Expected 1 space between double arrow and "TRUE"; 0 found
 110 | ERROR   | [x] Expected 1 space before "=>"; 0 found
 110 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 110 | ERROR   | [x] There should be no white space before a closing ")"
 113 | ERROR   | [x] Expected 1 blank line after function; 0 found
 114 | ERROR   | [x] The closing brace for the class must have an empty line
     |         |     before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 30 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...h_payment-2874396/modules/swish_payment_block/swish_payment_block.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 1 | WARNING | "core_version_requirement" property is missing in the info.yml
   |         | file
 7 | WARNING | All dependencies must be prefixed with the project name, for
   |         | example "drupal:"
--------------------------------------------------------------------------------


FILE: ...874396/modules/swish_payment_block/templates/swish_payment_block.html.twig
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...8_cont/web/modules/contrib/swish_payment-2874396/swish_payment.routing.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 51 | WARNING | Open page callback found, please add a comment before the line
    |         | why there is no access restriction
--------------------------------------------------------------------------------


FILE: ...n/d8_cont/web/modules/contrib/swish_payment-2874396/swish_payment.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | WARNING | "core_version_requirement" property is missing in the info.yml
   |         | file
--------------------------------------------------------------------------------

Time: 1.33 secs; Memory: 12MB

Thanks

urvashi_vora’s picture

Assigned: urvashi_vora » Unassigned
Status: Needs work » Needs review
StatusFileSize
new48.52 KB
new28.03 KB

Hi,

I resolved all coding standard issues, here is the patch and the screenshot after the fix.

Thanks

akshaydalvi212’s picture

Assigned: Unassigned » akshaydalvi212

Hello,
I will review this patch.

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new6.72 KB

Hello,
After applying the patch all the drupal coding standard errors and warnings mention above are eliminated.
Hence switching the issue to Reviewed and tested by the community.