FILE: ...learn\modules\swish_payment\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: ...t\modules\swish_payment_block\src\Form\SwishPaymentBlockForm.php ---------------------------------------------------------------------- FOUND 30 ERRORS AFFECTING 17 LINES ---------------------------------------------------------------------- 9 | ERROR | [x] There must be one blank line after the last USE | | statement; 2 found; 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] Expected 1 space after IF keyword; 0 found 84 | ERROR | [x] Inline control structures are not allowed 101 | ERROR | [x] Expected 1 space after IF keyword; 0 found 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: ...dules\swish_payment_block\src\Plugin\Block\SwishPaymentBlock.php ---------------------------------------------------------------------- FOUND 8 ERRORS AFFECTING 5 LINES ---------------------------------------------------------------------- 22 | ERROR | [x] Expected 1 blank line before function; 2 found 24 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 9 25 | ERROR | [x] Array closing indentation error, expected 4 spaces | | but found 8 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found | | 1 27 | ERROR | [x] Closing brace indented incorrectly; expected 2 | | spaces, found 1 68 | ERROR | [ ] If the line declaring an array spans longer than 80 | | characters, each element should be broken into its | | own line 68 | ERROR | [x] Expected 1 space between double arrow and "$this"; | | 0 found 68 | ERROR | [x] Expected 1 space after "=>"; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...swish_payment\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: ...payment\modules\swish_payment_block\swish_payment_block.info.yml ---------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added | | by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added | | by drupal.org packaging automatically ---------------------------------------------------------------------- FILE: ...earn\modules\swish_payment\src\Controller\CallbackController.php ---------------------------------------------------------------------- FOUND 11 ERRORS AND 3 WARNINGS AFFECTING 11 LINES ---------------------------------------------------------------------- 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 48 | ERROR | [x] Expected 1 space after IF keyword; 0 found 48 | ERROR | [x] Inline control structures are not allowed 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] Expected 1 space after IF keyword; 0 found 70 | ERROR | [x] Inline control structures are not allowed 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: ...\www\learn\modules\swish_payment\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 | [x] 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, colons, question marks, 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 | [x] 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, colons, question marks, 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 65 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...n\modules\swish_payment\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 | [x] There must be no blank line following an inline | | comment ---------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...n\modules\swish_payment\src\Entity\SwishTransactionViewsData.php ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 19 | WARNING | [x] There must be no blank line following an inline | | comment ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...mp\www\learn\modules\swish_payment\src\Form\SwishPaymentForm.php ---------------------------------------------------------------------- FOUND 24 ERRORS AND 1 WARNING AFFECTING 13 LINES ---------------------------------------------------------------------- 22 | ERROR | [x] Expected 1 blank line before function; 2 found 33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "true" 39 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "true" 53 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 54 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 60 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found 61 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found 62 | WARNING | [ ] Possible useless method overriding detected 78 | ERROR | [x] Expected 1 space after IF keyword; 0 found 81 | ERROR | [x] Expected 1 space between "'https'" and double | | arrow; 0 found 81 | ERROR | [x] Expected 1 space between double arrow and "TRUE"; | | 0 found 81 | ERROR | [x] Expected 1 space before "=>"; 0 found 81 | ERROR | [x] Expected 1 space after "=>"; 0 found 81 | ERROR | [x] Expected 1 space between "'absolute'" and double | | arrow; 0 found 81 | ERROR | [x] Expected 1 space between double arrow and "TRUE"; | | 0 found 81 | ERROR | [x] Expected 1 space before "=>"; 0 found 81 | ERROR | [x] Expected 1 space after "=>"; 0 found 81 | ERROR | [x] There should be no white space before a closing | | ")" 87 | ERROR | [x] Expected 1 space between "'absolute'" and double | | arrow; 0 found 87 | ERROR | [x] Expected 1 space between double arrow and "TRUE"; | | 0 found 87 | ERROR | [x] Expected 1 space before "=>"; 0 found 87 | ERROR | [x] Expected 1 space after "=>"; 0 found 87 | ERROR | [x] There should be no white space before a closing | | ")" 90 | ERROR | [x] Expected 1 blank line after function; 0 found 91 | ERROR | [x] The closing brace for the class must have an | | empty line before it ---------------------------------------------------------------------- PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...p\www\learn\modules\swish_payment\src\Form\SwishSettingsForm.php ---------------------------------------------------------------------- FOUND 16 ERRORS AFFECTING 16 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 37 | ERROR | [x] Short array syntax must be used to define arrays 42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "true" 44 | ERROR | [x] Short array syntax must be used to define arrays 49 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "true" 51 | ERROR | [x] Short array syntax must be used to define arrays 57 | ERROR | [x] Short array syntax must be used to define arrays 62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "TRUE" but found "true" 64 | ERROR | [x] Short array syntax must be used to define arrays 70 | ERROR | [x] Short array syntax must be used to define arrays 76 | ERROR | [x] Short array syntax must be used to define arrays 82 | ERROR | [x] Short array syntax must be used to define arrays 107 | ERROR | [x] Expected 1 blank line after function; 0 found 108 | ERROR | [x] The closing brace for the class must have an empty | | line before it ---------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: D:\wamp\www\learn\modules\swish_payment\src\SwishClient.php ---------------------------------------------------------------------- FOUND 107 ERRORS AND 3 WARNINGS AFFECTING 72 LINES ---------------------------------------------------------------------- 1 | ERROR | [x] The PHP open tag must be followed by exactly one | | blank line 5 | WARNING | [x] Unused use statement 6 | WARNING | [x] Unused use statement 9 | WARNING | [x] Unused use statement 14 | ERROR | [x] Doc comment short description must end with a | | full stop 14 | ERROR | [ ] Doc comment short description must be on a | | single line, further text should be a separate | | paragraph 23 | ERROR | [ ] Missing short description in doc comment 28 | ERROR | [ ] Missing short description in doc comment 33 | ERROR | [x] Missing function doc comment 38 | ERROR | [ ] Missing short description in doc comment 39 | ERROR | [x] Parameter comment must be on the next line 39 | ERROR | [x] Parameter comment must end with a full stop 40 | ERROR | [x] Parameter comment must be on the next line 40 | ERROR | [x] Parameter comment must end with a full stop 41 | ERROR | [x] Parameter comment must be on the next line 41 | ERROR | [x] Parameter comment must end with a full stop 42 | ERROR | [x] Parameter comment must be on the next line 43 | ERROR | [ ] Description for the @return value is missing 43 | ERROR | [x] Data types in @return tags need to be fully | | namespaced 45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "NULL" but found "null" 45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "NULL" but found "null" 47 | ERROR | [x] Expected 1 space between "'https'" and double | | arrow; 0 found 47 | ERROR | [x] Expected 1 space between double arrow and | | "TRUE"; 0 found 47 | ERROR | [x] Expected 1 space before "=>"; 0 found 47 | ERROR | [x] Expected 1 space after "=>"; 0 found 47 | ERROR | [x] Expected 1 space between "'absolute'" and double | | arrow; 0 found 47 | ERROR | [x] Expected 1 space between double arrow and | | "TRUE"; 0 found 47 | ERROR | [x] Expected 1 space before "=>"; 0 found 47 | ERROR | [x] Expected 1 space after "=>"; 0 found 56 | ERROR | [x] No space found before comment text; expected "// | | SEK only, sorry guys." but found "//SEK only, | | sorry guys." 56 | ERROR | [x] Comments may not appear after statements 62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 63 | ERROR | [x] Expected 1 space after IF keyword; 0 found 64 | ERROR | [x] Expected 1 space after "="; 2 found 70 | ERROR | [x] Expected 1 space after IF keyword; 0 found 70 | ERROR | [x] Inline control structures are not allowed 82 | ERROR | [x] Expected 1 space after CATCH keyword; 0 found 86 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 89 | ERROR | [ ] Missing short description in doc comment 90 | ERROR | [x] Parameter comment must be on the next line 90 | ERROR | [x] Parameter comment must end with a full stop 91 | ERROR | [ ] Description for the @return value is missing 91 | ERROR | [x] Data types in @return tags need to be fully | | namespaced 95 | ERROR | [x] Concat operator must be surrounded by a single | | space 97 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 98 | ERROR | [x] Expected 1 space after IF keyword; 0 found 99 | ERROR | [x] Expected 1 space after IF keyword; 0 found 101 | ERROR | [x] Expected 1 space after IF keyword; 0 found 101 | ERROR | [x] Inline control structures are not allowed 103 | ERROR | [x] Expected 1 space after IF keyword; 0 found 103 | ERROR | [x] Inline control structures are not allowed 105 | ERROR | [x] Expected 1 space after IF keyword; 0 found 105 | ERROR | [x] Inline control structures are not allowed 107 | ERROR | [x] Expected 1 space after IF keyword; 0 found 107 | ERROR | [x] Inline control structures are not allowed 109 | ERROR | [x] Expected 1 space after IF keyword; 0 found 109 | ERROR | [x] Inline control structures are not allowed 111 | ERROR | [x] Expected 1 space after IF keyword; 0 found 111 | ERROR | [x] Inline control structures are not allowed 121 | ERROR | [x] Expected 1 space after CATCH keyword; 0 found 124 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 127 | ERROR | [ ] Missing short description in doc comment 128 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found 128 | ERROR | [ ] Description for the @return value is missing 129 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found 131 | ERROR | [x] Opening brace should be on the same line as the | | declaration 136 | ERROR | [x] Expected 1 space after IF keyword; 0 found 136 | ERROR | [x] Inline control structures are not allowed 141 | ERROR | [x] Expected 1 space after IF keyword; 0 found 141 | ERROR | [x] Inline control structures are not allowed 150 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 150 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 151 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 152 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 153 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 154 | ERROR | [x] Array indentation error, expected 6 spaces but | | found 8 156 | ERROR | [x] Namespaced classes/interfaces/traits should be | | referenced with use statements 160 | ERROR | [ ] Missing short description in doc comment 161 | ERROR | [x] Parameter comment must be on the next line 161 | ERROR | [x] Parameter comment must end with a full stop 162 | ERROR | [x] Parameter comment must be on the next line 162 | ERROR | [x] Parameter comment must end with a full stop 163 | ERROR | [ ] Parameter comment must start with a capital | | letter 163 | ERROR | [x] Parameter comment must be on the next line 163 | ERROR | [x] Parameter comment must end with a full stop 164 | ERROR | [ ] Description for the @return value is missing 166 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "NULL" but found "null" 167 | ERROR | [x] Opening brace should be on the same line as the | | declaration 168 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected | | "FALSE" but found "false" 169 | ERROR | [x] Expected 1 space after IF keyword; 0 found 169 | ERROR | [x] Inline control structures are not allowed 171 | ERROR | [x] Expected 1 space after ELSE keyword; newline | | found 171 | ERROR | [x] Inline control structures are not allowed 176 | ERROR | [ ] Missing short description in doc comment 177 | ERROR | [ ] Missing parameter comment 178 | ERROR | [ ] Description for the @return value is missing 181 | ERROR | [x] Opening brace should be on the same line as the | | declaration 183 | ERROR | [x] Expected 1 space after IF keyword; 0 found 183 | ERROR | [x] Inline control structures are not allowed 185 | ERROR | [x] Expected 1 space after IF keyword; 0 found 185 | ERROR | [x] Inline control structures are not allowed 186 | ERROR | [x] Concat operator must be surrounded by a single | | space 190 | ERROR | [ ] Missing short description in doc comment 191 | ERROR | [ ] Missing parameter comment 192 | ERROR | [ ] Description for the @return value is missing 195 | ERROR | [x] Opening brace should be on the same line as the | | declaration 197 | ERROR | [x] Expected 1 space before ">="; 0 found 197 | ERROR | [x] Expected 1 space after ">="; 0 found 197 | ERROR | [x] Expected 1 space before "<="; 0 found 197 | ERROR | [x] Expected 1 space after "<="; 0 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 92 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...\learn\modules\swish_payment\src\SwishTransactionListBuilder.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 37 | ERROR | [x] Short array syntax must be used to define arrays ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: D:\wamp\www\learn\modules\swish_payment\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: D:\wamp\www\learn\modules\swish_payment\swish_payment.info.yml ---------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added | | by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added | | by drupal.org packaging automatically ---------------------------------------------------------------------- FILE: ...amp\www\learn\modules\swish_payment\swish_payment.links.task.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 21 | ERROR | [x] Expected 1 newline at end of file; 2 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- FILE: ...:\wamp\www\learn\modules\swish_payment\swish_payment.routing.yml ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 51 | ERROR | [x] Expected 1 newline at end of file; 2 found ---------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 2.42 secs; Memory: 14.75Mb