- Issue created by @Shanu Chouhan
- Issue was unassigned.
- Status changed to Needs work
over 1 year ago 9:15am 12 May 2023 - š®š³India dineshkumarbollu
Hi
After applying patch it still has error
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/drupal_commerce_razorpay-3359746/
FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/src/AutoWebhook.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
57 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
100 | WARNING | Unused variable $key.
114 | WARNING | Unused variable $key.
139 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
139 | ERROR | Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
------------------------------------------------------------------------------------------------------------------------------------------FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/src/PluginForm/RazorpayForm.php
------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------
37 | ERROR | Parameter $order is not described in comment
37 | ERROR | Parameter $orderData is not described in comment
41 | ERROR | Doc comment short description must end with a full stop
41 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
43 | ERROR | Doc comment for parameter $order, does not match actual variable name $orderData
46 | ERROR | Description for the @return value must be on the next line
------------------------------------------------------------------------------------------------------------------FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Controller/IPNController.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------
16 | ERROR | Public method name "IPNController::handleIPN" is not in lowerCamel format
21 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------------FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 4 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------------------------
137 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
137 | ERROR | Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
148 | WARNING | Unused variable $orders.
208 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
210 | ERROR | The array declaration extends to column 187 (the limit is 80). The array content should be split up over multiple lines
216 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
217 | ERROR | The array declaration extends to column 165 (the limit is 80). The array content should be split up over multiple lines
222 | ERROR | The array declaration extends to column 161 (the limit is 80). The array content should be split up over multiple lines
334 | ERROR | Doc comment is empty
------------------------------------------------------------------------------------------------------------------------------------------FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/drupal_commerce_razorpay.routing.yml
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
6 | WARNING | [ ] Open page callback found, please add a comment before the line why there is no access restriction
16 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------FILE: /var/www/html/vbd9/web/modules/contrib/drupal_commerce_razorpay-3359746/README.md
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 182 characters
8 | WARNING | Line exceeds 80 characters; contains 107 characters
9 | WARNING | Line exceeds 80 characters; contains 103 characters
17 | WARNING | Line exceeds 80 characters; contains 108 characters
19 | WARNING | Line exceeds 80 characters; contains 92 characters
25 | WARNING | Line exceeds 80 characters; contains 85 characters
--------------------------------------------------------------------------------------- - Status changed to Needs review
over 1 year ago 11:51am 22 May 2023 - š®š³India ashutosh ahirwal India
Providing patch with phpcs-issue fixes.
- Status changed to Needs work
6 months ago 7:27am 4 July 2024 - šµšPhilippines cleavinjosh
Hi @Ashutosh Ahirwal,
I applied patch #5 and it was applied smoothly. However, I still encountered some errors after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā drupal_commerce_razorpay git:(main) ā curl https://www.drupal.org/files/issues/2023-05-22/phpcs-issue-fixes-3359746-5.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 66583 100 66583 0 0 336k 0 --:--:-- --:--:-- --:--:-- 338k patching file README.md patching file drupal_commerce_razorpay.routing.yml patching file src/AutoWebhook.php patching file src/Controller/IPNController.php patching file src/Controller/RzpController.php patching file src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php patching file src/Plugin/Commerce/PaymentGateway/RazorpayInterface.php patching file src/PluginForm/RazorpayForm.php ā drupal_commerce_razorpay git:(main) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml drupal_commerce_razorpay FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/drupal_commerce_razorpay.info.yml ------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" 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: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/PluginForm/RazorpayForm.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\commerce_payment\Exception\PaymentGatewayException. 148 | WARNING | [ ] Unused variable $orders. ------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/Controller/IPNController.php -------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\DependencyInjection\ContainerInterface. -------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/AutoWebhook.php ----------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url. ----------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------- Time: 385ms; Memory: 12MB ā contrib git:(main) ā
Please check and advise.
Thank you. - šµšPhilippines cleavinjosh
Hi,
I provided a patch that fixes some of the issues, this is the only remaining issue I encountered.
ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml drupal_commerce_razorpay FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php ----------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------- 148 | WARNING | Unused variable $orders. ----------------------------------------------------------------------------------------------------------------------------------------------------- Time: 306ms; Memory: 12MB
Please review.
Thank you. - Assigned to hetal.solanki
- Status changed to Needs review
6 months ago 7:56am 11 July 2024 - š®š³India hetal.solanki
As i have reviewed phpcs i still encountered some errors after run below command:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/drupal_commerce_razorpay-3359746/
FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/README.md ---------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES ---------------------------------------------------------------------------------------------------------- 3 | WARNING | Line exceeds 80 characters; contains 182 characters 8 | WARNING | Line exceeds 80 characters; contains 107 characters 9 | WARNING | Line exceeds 80 characters; contains 103 characters 17 | WARNING | Line exceeds 80 characters; contains 108 characters 19 | WARNING | Line exceeds 80 characters; contains 92 characters 25 | WARNING | Line exceeds 80 characters; contains 85 characters ---------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/drupal_commerce_razorpay.routing.yml ------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------- 6 | WARNING | [ ] Open page callback found, please add a comment before the line why there is no access restriction 16 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/PluginForm/RazorpayForm.php --------------------------------------------------------------------------------------------------------------------------------- FOUND 166 ERRORS AND 7 WARNINGS AFFECTING 133 LINES --------------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. 16 | ERROR | [x] Opening brace should be on the same line as the declaration 17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 17 | ERROR | [ ] Missing member variable doc comment 18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 18 | ERROR | [ ] Missing member variable doc comment 19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 19 | ERROR | [ ] Missing member variable doc comment 21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 23 | ERROR | [ ] Parameter $order is not described in comment 23 | ERROR | [ ] Parameter $orderData is not described in comment 27 | ERROR | [ ] Doc comment short description must end with a full stop 27 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph 29 | ERROR | [ ] Doc comment for parameter $order, does not match actual variable name $orderData 29 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found 2 29 | ERROR | [x] Parameter comment must be on the next line 29 | ERROR | [x] Parameter comment must end with a full stop 30 | ERROR | [x] Separate the @param and @return sections by a blank line. 30 | ERROR | [ ] Description for the @return value must be on the next line 32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 33 | ERROR | [x] Opening brace should be on the same line as the declaration 34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 34 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 36 | ERROR | [x] Expected 1 space after TRY keyword; newline found 38 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 43 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 43 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 44 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 44 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 46 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 46 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 48 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 48 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 50 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 52 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 52 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 54 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 54 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 55 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 56 | ERROR | [x] Expected 1 space after ELSE keyword; newline found 58 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 59 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 62 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 64 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 64 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 67 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 69 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 69 | ERROR | [x] Expected 1 space after TRY keyword; newline found 71 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 72 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 73 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 74 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 75 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 76 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 77 | ERROR | [x] Array indentation error, expected 22 spaces but found 24 81 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 83 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 84 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 85 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 87 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 88 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 89 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 89 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 91 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 93 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 96 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 98 | ERROR | [x] Missing function doc comment 98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 99 | ERROR | [x] Opening brace should be on the same line as the declaration 100 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 100 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 101 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 101 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 103 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 104 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 108 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 110 | ERROR | [x] Missing function doc comment 111 | ERROR | [x] Opening brace should be on the same line as the declaration 112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 118 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 120 | ERROR | [x] Missing function doc comment 121 | ERROR | [x] Opening brace should be on the same line as the declaration 122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 128 | ERROR | [x] Short array syntax must be used to define arrays 133 | WARNING | [x] A comma should follow the last multiline array item. Found: 'btn-razorpay' 134 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 137 | ERROR | [x] Short array syntax must be used to define arrays 142 | WARNING | [x] A comma should follow the last multiline array item. Found: '");' 143 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 147 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 148 | ERROR | [x] Whitespace found at end of line 149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 152 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 153 | ERROR | [x] Opening brace should be on the same line as the declaration 154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 164 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 169 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 172 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 174 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 176 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 178 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 178 | ERROR | [x] Expected 1 space after "="; 2 found 179 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 180 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 185 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 187 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 188 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 189 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 192 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 201 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 202 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 203 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 206 | WARNING | [x] A comma should follow the last multiline array item. Found: $orderId 207 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 210 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 213 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 214 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 216 | ERROR | [x] Expected 1 space after TRY keyword; newline found 218 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 219 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 220 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 221 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 223 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 223 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 224 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 226 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 227 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 228 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 230 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 230 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 232 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 235 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 236 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 236 | ERROR | [x] Expected 1 blank line after function; 0 found --------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 164 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Controller/RzpController.php --------------------------------------------------------------------------------------------------------------------------------- FOUND 15 ERRORS AND 4 WARNINGS AFFECTING 15 LINES --------------------------------------------------------------------------------------------------------------------------------- 5 | WARNING | [x] Unused use statement 8 | WARNING | [x] Unused use statement 9 | WARNING | [x] Unused use statement 13 | ERROR | [x] Doc comment short description must end with a full stop 14 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment 15 | ERROR | [x] There must be exactly one newline after the class comment 18 | ERROR | [x] Opening brace should be on the same line as the declaration 19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 19 | ERROR | [x] Missing function doc comment 19 | ERROR | [x] Expected 1 blank line before function; 0 found 20 | ERROR | [x] Opening brace should be on the same line as the declaration 21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 21 | ERROR | [x] Expected 1 space after "="; 2 found 23 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 24 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 27 | WARNING | [x] A comma should follow the last multiline array item. Found: TRUE 31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 32 | ERROR | [x] Expected 1 blank line after function; 0 found --------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Controller/IPNController.php --------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES --------------------------------------------------------------------------------------------------------------------------------- 16 | ERROR | [ ] Public method name "IPNController::handleIPN" is not in lowerCamel format 21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6 21 | 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/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php -------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 430 ERRORS AND 13 WARNINGS AFFECTING 357 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\commerce_payment\Exception\PaymentGatewayException. 18 | WARNING | [x] Unused use statement 33 | ERROR | [x] Opening brace should be on the same line as the declaration 34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 35 | ERROR | [x] Doc comment short description must end with a full stop 37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 37 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 7 spaces 38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 38 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 11 spaces 39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 39 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 9 spaces 40 | ERROR | [x] Whitespace found at end of line 41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5 41 | ERROR | [ ] Missing short description in doc comment 42 | ERROR | [x] Expected 6 space(s) before asterisk; 5 found 43 | ERROR | [x] Expected 6 space(s) before asterisk; 5 found 44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 46 | ERROR | [ ] Missing short description in doc comment 49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 50 | ERROR | [x] Whitespace found at end of line 51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 55 | ERROR | [x] Opening brace should be on the same line as the declaration 56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 56 | ERROR | [x] The first index in a multi-value array must be on a new line 57 | ERROR | [x] Array indentation error, expected 10 spaces but found 16 58 | ERROR | [x] Array indentation error, expected 10 spaces but found 16 59 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 12 60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 66 | ERROR | [x] Opening brace should be on the same line as the declaration 67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 83 | ERROR | [x] Opening brace should be on the same line as the declaration 84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 86 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 90 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 91 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 92 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 93 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 94 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 98 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 99 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 100 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 101 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 102 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 106 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 107 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 108 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 109 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 110 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 112 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 116 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 118 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 122 | ERROR | [x] Opening brace should be on the same line as the declaration 123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 125 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 125 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 134 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 136 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 139 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 141 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 141 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables 141 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal 142 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 144 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 147 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 147 | ERROR | [x] Expected 1 space after TRY keyword; newline found 149 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 150 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 151 | WARNING | [x] A comma should follow the last multiline array item. Found: 1 153 | WARNING | [ ] Unused variable $orders. 153 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 155 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 157 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 158 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 159 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 161 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 163 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 166 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 167 | ERROR | [x] Opening brace should be on the same line as the declaration 168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 170 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 172 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 178 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 179 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 186 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 187 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 188 | ERROR | [x] Whitespace found at end of line 189 | ERROR | [x] Opening brace should be on the same line as the declaration 190 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 192 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 193 | ERROR | [x] Whitespace found at end of line 194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 194 | ERROR | [x] No space found before comment text; expected "// validate Rzp signature" but found "//validate Rzp signature" 194 | ERROR | [x] Inline comments must start with a capital letter 194 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 195 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 195 | ERROR | [x] Expected 1 space after TRY keyword; newline found 196 | ERROR | [x] Whitespace found at end of line 197 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 200 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 202 | ERROR | [x] Whitespace found at end of line 203 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 205 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 205 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 206 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 207 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 209 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 210 | ERROR | [x] Whitespace found at end of line 211 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 212 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 214 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 216 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 216 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 218 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 219 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 219 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 221 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 221 | ERROR | [ ] The array declaration extends to column 195 (the limit is 80). The array content should be split up over multiple lines 222 | ERROR | [x] Whitespace found at end of line 223 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 224 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 225 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 225 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 227 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 228 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 228 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 229 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 229 | ERROR | [ ] The array declaration extends to column 173 (the limit is 80). The array content should be split up over multiple lines 230 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 231 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 232 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 232 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 234 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 234 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 235 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 235 | ERROR | [ ] The array declaration extends to column 169 (the limit is 80). The array content should be split up over multiple lines 236 | ERROR | [x] Whitespace found at end of line 237 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 238 | ERROR | [x] Whitespace found at end of line 239 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 240 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 241 | ERROR | [x] Whitespace found at end of line 242 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 244 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 245 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 246 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 247 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 248 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 249 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 250 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 251 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 252 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 253 | ERROR | [x] Array closing indentation error, expected 12 spaces but found 16 255 | ERROR | [x] Whitespace found at end of line 256 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 258 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 260 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 261 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 261 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 263 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 264 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 265 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 267 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 268 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 268 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 270 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 271 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 272 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 273 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 279 | ERROR | [x] Opening brace should be on the same line as the declaration 280 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 282 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 283 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 285 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 285 | ERROR | [x] Expected 1 space after TRY keyword; newline found 287 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 289 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 290 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 292 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 294 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 296 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 297 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 298 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 298 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 300 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 301 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 302 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 304 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 305 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 306 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 307 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 309 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 312 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 313 | ERROR | [x] Opening brace should be on the same line as the declaration 314 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 315 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 317 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 320 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 321 | ERROR | [x] Opening brace should be on the same line as the declaration 322 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 324 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 325 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 326 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 328 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 328 | ERROR | [x] Expected 1 space after TRY keyword; newline found 330 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 332 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 333 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 334 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 334 | ERROR | [x] Short array syntax must be used to define arrays 335 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 336 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 336 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 338 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 339 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 340 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 342 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 343 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 345 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 345 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 347 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 348 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 349 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 349 | ERROR | [x] Expected 1 space after ELSE keyword; newline found 351 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 352 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 354 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 355 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 356 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 358 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 358 | ERROR | [x] Missing function doc comment 358 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 358 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 359 | ERROR | [x] Opening brace should be on the same line as the declaration 360 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 360 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 361 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null" 361 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 363 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 364 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 365 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 367 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 368 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 370 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 371 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 372 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 373 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 374 | ERROR | [x] Opening brace should be on the same line as the declaration 375 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 376 | ERROR | [x] Array indentation error, expected 10 spaces but found 12 377 | ERROR | [x] Array closing indentation error, expected 8 spaces but found 10 379 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 381 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 382 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 383 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found 384 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 385 | ERROR | [x] Opening brace should be on the same line as the declaration 386 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 389 | WARNING | [x] A comma should follow the last multiline array item. Found: 'payment.failed' 392 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 392 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 394 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 395 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 395 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 396 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 397 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 398 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 400 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 402 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 404 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 406 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 406 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 406 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 408 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 409 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 410 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 411 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 411 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 413 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 414 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 416 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 417 | ERROR | [x] Whitespace found at end of line 418 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 418 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 419 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 421 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 422 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 424 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 424 | ERROR | [x] Expected 1 space after TRY keyword; newline found 426 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 427 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 428 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 428 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 430 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 430 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 431 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 432 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 433 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 434 | ERROR | [x] Whitespace found at end of line 435 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 435 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 436 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 437 | ERROR | [x] Whitespace found at end of line 438 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 440 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 442 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 442 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 444 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 446 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 448 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 448 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 450 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 451 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 453 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 454 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 456 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 458 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 458 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 460 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 461 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 462 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 462 | ERROR | [x] Use "elseif" in place of "else if" 462 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 464 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 465 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 467 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 468 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 468 | ERROR | [x] Expected 1 space before "/"; 0 found 468 | ERROR | [x] Expected 1 space after "/"; 0 found 469 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 472 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 16 473 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 474 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 475 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 476 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 477 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 478 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 479 | ERROR | [x] Array indentation error, expected 18 spaces but found 20 481 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 16 483 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16 485 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 486 | WARNING | [x] There must be no blank line following an inline comment 486 | WARNING | [ ] There must be no blank line following an inline comment 486 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 486 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 488 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 489 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 490 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 490 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 492 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 492 | ERROR | [x] Concat operator must be surrounded by a single space 493 | ERROR | [x] Whitespace found at end of line 494 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 494 | ERROR | [x] Expected 1 space after comma in argument list; 2 found 494 | ERROR | [x] Expected one space after the comma, 2 found 495 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 497 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 497 | ERROR | [x] Concat operator must be surrounded by a single space 498 | ERROR | [x] Whitespace found at end of line 499 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16 501 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 502 | WARNING | [x] There must be no blank line following an inline comment 502 | WARNING | [ ] There must be no blank line following an inline comment 502 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 502 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 503 | ERROR | [x] Whitespace found at end of line 504 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 505 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 506 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 506 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 508 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 508 | ERROR | [x] Concat operator must be surrounded by a single space 509 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 510 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 511 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 511 | ERROR | [x] Expected 1 space before "="; 0 found 511 | ERROR | [x] Expected 1 space before "/"; 0 found 511 | ERROR | [x] Expected 1 space after "/"; 0 found 513 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 513 | ERROR | [x] Expected 1 space before "="; 0 found 513 | ERROR | [x] Expected 1 space before "/"; 0 found 513 | ERROR | [x] Expected 1 space after "/"; 0 found 514 | ERROR | [x] Whitespace found at end of line 515 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 515 | ERROR | [x] Expected 1 space after IF keyword; 0 found 515 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 517 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 518 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 519 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 519 | ERROR | [x] Expected 1 space after ELSE keyword; newline found 521 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20 522 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 523 | ERROR | [x] Whitespace found at end of line 524 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 525 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 526 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 527 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 528 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 529 | ERROR | [x] Whitespace found at end of line 530 | ERROR | [x] Case breaking statement indented incorrectly; expected 14 spaces, found 16 531 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 9 531 | ERROR | [x] Closing brace indented incorrectly; expected 8 spaces, found 9 532 | ERROR | [x] Whitespace found at end of line 533 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 9 533 | ERROR | [x] Concat operator must be surrounded by a single space 534 | ERROR | [x] Whitespace found at end of line 535 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 9 536 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 536 | ERROR | [x] Expected 1 blank line after function; 0 found -------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 431 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/Plugin/Commerce/PaymentGateway/RazorpayInterface.php --------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Missing interface doc comment 10 | ERROR | [x] Opening brace should be on the same line as the declaration --------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/src/AutoWebhook.php ---------------------------------------------------------------------------------------------------------------------------------------------- FOUND 115 ERRORS AND 9 WARNINGS AFFECTING 84 LINES ---------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url. 8 | ERROR | [x] Missing class doc comment 9 | ERROR | [x] Opening brace should be on the same line as the declaration 10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 10 | ERROR | [ ] Missing member variable doc comment 11 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 12 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 13 | WARNING | [x] A comma should follow the last multiline array item. Found: true 13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 16 | ERROR | [ ] Missing member variable doc comment 17 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 18 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 19 | WARNING | [x] A comma should follow the last multiline array item. Found: true 19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 22 | ERROR | [x] Missing function doc comment 23 | ERROR | [x] Opening brace should be on the same line as the declaration 24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 29 | ERROR | [x] Missing function doc comment 30 | ERROR | [x] Opening brace should be on the same line as the declaration 31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 31 | ERROR | [x] Expected 1 space after TRY keyword; newline found 33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 35 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 37 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 37 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 39 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16 40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 42 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 53 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 58 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 59 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 60 | ERROR | [x] Expected 1 space before "="; 0 found 61 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 61 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 62 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 73 | WARNING | [x] A comma should follow the last multiline array item. Found: $skip 76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 79 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 81 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 20 81 | WARNING | [ ] Unused variable $key. 81 | ERROR | [x] Expected 1 space after closing parenthesis; found 21 83 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 24 84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 20 85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 86 | ERROR | [x] There should be no white space after an opening "(" 88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 89 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 90 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 90 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 91 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 92 | ERROR | [x] Array indentation error, expected 14 spaces but found 16 95 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 95 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 97 | WARNING | [ ] Unused variable $key. 97 | ERROR | [x] Expected 1 space after closing parenthesis; found 17 99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 20 99 | ERROR | [x] Expected 1 space after closing parenthesis; found 21 101 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 24 101 | ERROR | [x] Expected 1 space after closing parenthesis; found 25 103 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 28 104 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 104 | ERROR | [x] Expected 1 space after closing parenthesis; found 29 106 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 32 106 | ERROR | [x] Expected 1 space after "="; 2 found 106 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 107 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 28 108 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 24 109 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 24 109 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces 109 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 110 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 24 110 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 5 spaces 111 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 20 112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 114 | ERROR | [x] Expected 1 space after closing parenthesis; found 13 116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 116 | ERROR | [x] No space found before comment text; expected "// updating webhook" but found "//updating webhook" 116 | ERROR | [x] Inline comments must start with a capital letter 116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 119 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 120 | ERROR | [x] Expected 1 space after ELSE keyword; newline found 122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 122 | ERROR | [x] No space found before comment text; expected "// creating webhook" but found "//creating webhook" 122 | ERROR | [x] Inline comments must start with a capital letter 122 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 16 125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 12 126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 127 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 127 | ERROR | [x] Expected 1 space after closing parenthesis; found 9 129 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 129 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 129 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables 129 | ERROR | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal 130 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12 131 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8 132 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 132 | ERROR | [x] Expected 1 blank line after function; 0 found ---------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 116 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/drupal-contribution-d10/web/modules/contrib/drupal_commerce_razorpay-3359746/js/drupal_commerce_razorpay.js ------------------------------------------------------------------------------------------------------------------------------- FOUND 9 ERRORS AFFECTING 9 LINES ------------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 10 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" 13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 22 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 25 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 26 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" 30 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 44 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 49 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- Time: 563ms; Memory: 14MB
- Status changed to Needs work
6 months ago 8:02am 11 July 2024 - š®š¹Italy apaderno Brescia, š®š¹
Let's use issue forks and MRs, now that patches are no longer tested.
- Issue was unassigned.
- Status changed to Needs review
5 months ago 4:59am 18 July 2024 - šµšPhilippines cleavinjosh
Hi,
I fixed some of the phpcs issues. This is the remaining issue:
ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml drupal_commerce_razorpay FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/drupal_commerce_razorpay/src/Plugin/Commerce/PaymentGateway/RazorpayCheckout.php ----------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------- 148 | WARNING | Unused variable $orders. ----------------------------------------------------------------------------------------------------------------------------------------------------- Time: 386ms; Memory: 12MB ā contrib
Please review.
Thank you. - Status changed to RTBC
5 months ago 5:35am 18 July 2024 - š®š³India riddhi.addweb
The mentioned page issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.
Note:- There are only warnings displayed, no errors are displayed. Attaching SS for the same.