Drupal Coding standard issue and readme not follow best practices

Created on 10 January 2020, almost 5 years ago
Updated 22 July 2024, 4 months ago

Hi grasmash,

Please Fix below issues :

Review of the 8.x-1.x branch (commit 11c592b):

Your README.md does not follow best practices (headings need to be uppercase). See https://www.drupal.org/node/2181737 .
The INTRODUCTION section is missing.
The REQUIREMENTS section is missing.
The INSTALLATION section is missing.
The CONFIGURATION section is missing.
Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
ESLint has found some issues with your code (please check the JavaScript coding standards).

/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 6, col 11, Error - Use the function form of 'use strict'. (strict)
/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 28, col 9, Error - Expected space(s) after "if". (keyword-spacing)
/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 28, col 47, Error - Missing space before opening brace. (space-before-blocks)
/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 63, col 7, Warning - Missing JSDoc for parameter 'status'. (valid-jsdoc)
/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 63, col 7, Warning - Missing JSDoc for parameter 'response'. (valid-jsdoc)
/var/vhosts/c214000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/js/checkout.js: line 87, col 8, Error - Unnecessary semicolon. (no-extra-semi)

6 problems

DrupalPractice has found some issues with your code, but could be false positives.

FILE: ...1101/web/vendor/drupal/pareviewsh/pareview_temp/stripe_plan.page.inc
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
24 | WARNING | Unused variable $stripe_plan.
--------------------------------------------------------------------------

FILE: ...eb/vendor/drupal/pareviewsh/pareview_temp/stripe_registration.module
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------
153 | WARNING | There must be no blank line following an inline comment
195 | WARNING | There must be no blank line following an inline comment
241 | WARNING | Variable $this is undefined.
252 | WARNING | Variable $this is undefined.
299 | WARNING | There must be no blank line following an inline comment
302 | WARNING | There must be no blank line following an inline comment
304 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------

FILE: .../drupal/pareviewsh/pareview_temp/stripe_subscription_entity.page.inc
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
24 | WARNING | Unused variable $stripe_subscription.
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/StripeRegistrationService.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
145 | WARNING | There must be no blank line following an inline comment
222 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
303 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: ...al/pareviewsh/pareview_temp/src/Entity/StripePlanEntityInterface.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
16 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/src/Entity/StripeSubscriptionEntityInterface.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
16 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------

FILE: ...eviewsh/pareview_temp/src/Controller/UserSubscriptionsController.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------
102 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
114 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
145 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
164 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
174 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
193 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: ...l/pareviewsh/pareview_temp/src/Form/StripeSubscriptionEntityForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
21 | WARNING | Unused variable $entity.
--------------------------------------------------------------------------

FILE: ...dor/drupal/pareviewsh/pareview_temp/src/Form/StripeSubscribeForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
31 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/Form/StripePlanEntityForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
26 | WARNING | Unused variable $entity.
--------------------------------------------------------------------------

FILE: .../vendor/drupal/pareviewsh/pareview_temp/stripe_registration.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
8 | WARNING | All dependencies must be prefixed with the project name,
| | for example "drupal:"
--------------------------------------------------------------------------

Time: 2.14 secs; Memory: 6Mb

This automated report was generated with PAReview.sh, your friendly project application review script.

FILE: ...eb/vendor/drupal/pareviewsh/pareview_temp/stripe_registration.module
--------------------------------------------------------------------------
FOUND 22 ERRORS AND 4 WARNINGS AFFECTING 22 LINES
--------------------------------------------------------------------------
13 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
55 | ERROR | [x] Missing function doc comment
85 | ERROR | [x] Missing function doc comment
91 | ERROR | [x] Missing function doc comment
92 | ERROR | [x] Data types in @var tags need to be fully namespaced
97 | ERROR | [ ] Missing short description in doc comment
98 | ERROR | [ ] Missing parameter comment
98 | ERROR | [ ] Missing parameter type
99 | ERROR | [ ] Missing parameter comment
104 | ERROR | [x] Expected 1 space after "="; 2 found
105 | ERROR | [x] Expected 1 space after "="; 2 found
123 | ERROR | [x] Data types in @var tags need to be fully namespaced
153 | WARNING | [x] There must be no blank line following an inline
| | comment
215 | ERROR | [x] Expected 1 space after "="; 2 found
226 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
227 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
227 | ERROR | [x] Short array syntax must be used to define arrays
234 | ERROR | [x] Data types in @var tags need to be fully namespaced
269 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
269 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
269 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
270 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
287 | ERROR | [x] Data types in @var tags need to be fully namespaced
288 | ERROR | [x] Expected 1 space after "="; 2 found
304 | ERROR | [x] Inline comments must start with a capital letter
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
9 | WARNING | Line exceeds 80 characters; contains 135 characters
--------------------------------------------------------------------------

FILE: ...b/vendor/drupal/pareviewsh/pareview_temp/stripe_registration.install
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
45 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...dor/drupal/pareviewsh/pareview_temp/stripe_registration.services.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/StripeRegistrationService.php
--------------------------------------------------------------------------
FOUND 40 ERRORS AND 2 WARNINGS AFFECTING 39 LINES
--------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
32 | ERROR | [ ] Missing short description in doc comment
37 | ERROR | [ ] Missing short description in doc comment
51 | ERROR | [ ] Missing short description in doc comment
51 | ERROR | [ ] Parameter $remote_id is not described in comment
52 | ERROR | [ ] Missing parameter comment
54 | ERROR | [ ] Description for the @return value is missing
56 | ERROR | [ ] Type hint "\Drupal\user\UserInterface" missing for
| | $user
70 | ERROR | [ ] Missing short description in doc comment
71 | ERROR | [ ] Missing parameter comment
73 | ERROR | [ ] Description for the @return value is missing
75 | ERROR | [ ] Type hint "\Drupal\user\UserInterface" missing for
| | $user
79 | ERROR | [ ] Missing short description in doc comment
80 | ERROR | [ ] Missing parameter comment
82 | ERROR | [ ] Description for the @return value is missing
84 | ERROR | [ ] Type hint "array" missing for $args
95 | ERROR | [ ] Missing short description in doc comment
96 | ERROR | [ ] Missing parameter comment
98 | ERROR | [ ] Description for the @return value is missing
100 | ERROR | [ ] Type hint "array" missing for $properties
114 | ERROR | [ ] Missing short description in doc comment
115 | ERROR | [ ] Missing parameter comment
117 | ERROR | [ ] Description for the @return value is missing
119 | ERROR | [ ] Type hint "array" missing for $properties
128 | ERROR | [ ] Doc comment is empty
139 | ERROR | [ ] Missing short description in doc comment
140 | ERROR | [ ] Description for the @return value is missing
158 | ERROR | [ ] Doc comment is empty
167 | ERROR | [ ] Missing short description in doc comment
169 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
194 | ERROR | [x] Short array syntax must be used to define arrays
194 | ERROR | [x] There must be no space between the "array" keyword
| | and the opening parenthesis
212 | ERROR | [x] Data types in @var tags need to be fully namespaced
225 | ERROR | [ ] Doc comment is empty
238 | ERROR | [ ] Missing short description in doc comment
239 | ERROR | [ ] Missing parameter comment
270 | ERROR | [ ] Doc comment is empty
276 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
276 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
| | "FALSE" but found "false"
281 | ERROR | [ ] Doc comment is empty
287 | ERROR | [x] Expected one space after the comma, 0 found
298 | ERROR | [ ] Doc comment is empty
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...al/pareviewsh/pareview_temp/src/Entity/StripePlanEntityInterface.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------
16 | WARNING | [x] There must be no blank line following an inline
| | comment
54 | ERROR | [x] Expected 1 blank line after function; 0 found
55 | ERROR | [x] The closing brace for the interface must have an
| | empty line before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...pal/pareviewsh/pareview_temp/src/Entity/StripeSubscriptionEntity.php
--------------------------------------------------------------------------
FOUND 28 ERRORS AND 1 WARNING AFFECTING 28 LINES
--------------------------------------------------------------------------
79 | ERROR | [x] Short array syntax must be used to define arrays
157 | ERROR | [x] Short array syntax must be used to define arrays
162 | ERROR | [x] Short array syntax must be used to define arrays
165 | ERROR | [x] Short array syntax must be used to define arrays
177 | ERROR | [x] Short array syntax must be used to define arrays
182 | ERROR | [x] Short array syntax must be used to define arrays
187 | ERROR | [x] Short array syntax must be used to define arrays
195 | ERROR | [x] Short array syntax must be used to define arrays
200 | ERROR | [x] Short array syntax must be used to define arrays
205 | ERROR | [x] Short array syntax must be used to define arrays
214 | ERROR | [x] Short array syntax must be used to define arrays
219 | ERROR | [x] Short array syntax must be used to define arrays
224 | ERROR | [x] Short array syntax must be used to define arrays
232 | WARNING | [ ] Avoid backslash escaping in translatable strings
| | when possible, use "" quotes instead
233 | ERROR | [x] Short array syntax must be used to define arrays
238 | ERROR | [x] Short array syntax must be used to define arrays
243 | ERROR | [x] Short array syntax must be used to define arrays
253 | ERROR | [x] Short array syntax must be used to define arrays
258 | ERROR | [x] Short array syntax must be used to define arrays
263 | ERROR | [x] Short array syntax must be used to define arrays
272 | ERROR | [x] Short array syntax must be used to define arrays
283 | ERROR | [x] Short array syntax must be used to define arrays
311 | ERROR | [ ] Doc comment is empty
355 | ERROR | [ ] Missing short description in doc comment
356 | ERROR | [ ] Missing parameter comment
356 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
358 | ERROR | [ ] Return type missing for @return tag in function
| | comment
362 | ERROR | [ ] Type hint "Subscription" missing for
| | $remote_subscription
374 | ERROR | [x] Expected 1 blank line after function; 2 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...ndor/drupal/pareviewsh/pareview_temp/src/Entity/StripePlanEntity.php
--------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
--------------------------------------------------------------------------
66 | ERROR | [x] Short array syntax must be used to define arrays
140 | ERROR | [x] Short array syntax must be used to define arrays
146 | ERROR | [x] Short array syntax must be used to define arrays
151 | ERROR | [x] Short array syntax must be used to define arrays
159 | ERROR | [x] Short array syntax must be used to define arrays
165 | ERROR | [x] Short array syntax must be used to define arrays
170 | ERROR | [x] Short array syntax must be used to define arrays
178 | ERROR | [x] Short array syntax must be used to define arrays
185 | ERROR | [x] Short array syntax must be used to define arrays
204 | ERROR | [x] Short array syntax must be used to define arrays
212 | ERROR | [x] Short array syntax must be used to define arrays
218 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/src/Entity/StripeSubscriptionEntityViewsData.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
19 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...al/pareviewsh/pareview_temp/src/Entity/StripePlanEntityViewsData.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
19 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...iewsh/pareview_temp/src/Entity/StripeSubscriptionEntityInterface.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
16 | WARNING | [x] There must be no blank line following an inline
| | comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: .../drupal/pareviewsh/pareview_temp/src/StripePlanEntityListBuilder.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...pareviewsh/pareview_temp/src/StripeSubscriptionEntityListBuilder.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
32 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
35 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...l/pareviewsh/pareview_temp/src/EventSubscriber/WebHookSubscriber.php
--------------------------------------------------------------------------
FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------
17 | ERROR | [ ] Missing short description in doc comment
21 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [ ] Parameter $logger is not described in comment
28 | ERROR | [ ] Missing parameter comment
38 | ERROR | [x] The static declaration must come after the visibility
| | declaration
59 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
78 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
82 | WARNING | [ ] Line exceeds 80 characters; contains 149 characters
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...eviewsh/pareview_temp/src/Controller/UserSubscriptionsController.php
--------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 8 LINES
--------------------------------------------------------------------------
63 | ERROR | [x] Short array syntax must be used to define arrays
65 | ERROR | [ ] If the line declaring an array spans longer than 80
| | characters, each element should be broken into its
| | own line
65 | ERROR | [x] Short array syntax must be used to define arrays
67 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
141 | ERROR | [ ] Doc comment is empty
152 | ERROR | [x] Expected 1 blank line after function; 2 found
161 | ERROR | [ ] Description for the @return value is missing
170 | ERROR | [ ] Doc comment is empty
190 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...r/drupal/pareviewsh/pareview_temp/src/Controller/MySubscriptions.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...l/pareviewsh/pareview_temp/src/Form/StripeSubscriptionEntityForm.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
35 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
36 | ERROR | [x] Array indentation error, expected 12 spaces but found
| | 10
37 | ERROR | [x] Array closing indentation error, expected 10 spaces but
| | found 8
41 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
42 | ERROR | [x] Array indentation error, expected 12 spaces but found
| | 10
43 | ERROR | [x] Array closing indentation error, expected 10 spaces but
| | found 8
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...dor/drupal/pareviewsh/pareview_temp/src/Form/StripeSubscribeForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
40 | WARNING | Possible useless method overriding detected
--------------------------------------------------------------------------

FILE: ...viewsh/pareview_temp/src/Form/StripeSubscriptionEntityDeleteForm.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
18 | ERROR | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...or/drupal/pareviewsh/pareview_temp/src/Form/StripePlanEntityForm.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------
40 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
41 | ERROR | [x] Array indentation error, expected 12 spaces but found
| | 10
42 | ERROR | [x] Array closing indentation error, expected 10 spaces but
| | found 8
46 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
47 | ERROR | [x] Array indentation error, expected 12 spaces but found
| | 10
48 | ERROR | [x] Array closing indentation error, expected 10 spaces but
| | found 8
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...h/pareview_temp/Tests/Controller/UserSubscriptionsControllerTest.php
--------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------
16 | ERROR | [x] Short array syntax must be used to define arrays
26 | WARNING | [ ] Possible useless method overriding detected
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ...r/drupal/pareviewsh/pareview_temp/stripe_registration.links.task.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: .../drupal/pareviewsh/pareview_temp/stripe_registration.permissions.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
18 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Time: 3.6 secs; Memory: 8Mb

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India ankushgautam76@gmail.com Gurgaon, India 🇮🇳

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024