Problem/Motivation

FILE: ...ml/vb/d_cont/commerce_stripe_checkout/commerce_stripe_checkout.routing.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
7 | WARNING | [ ] Open page callback found, please add a comment before the
| | line why there is no access restriction
15 | WARNING | [ ] Open page callback found, please add a comment before the
| | line why there is no access restriction
15 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ww/html/vb/d_cont/commerce_stripe_checkout/commerce_stripe_checkout.module
--------------------------------------------------------------------------------
FOUND 39 ERRORS AND 4 WARNINGS AFFECTING 36 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
19 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
23 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
42 | ERROR | [x] Expected 1 blank line after function; 0 found
46 | ERROR | [ ] Doc comment for parameter $payment does not match actual
| | variable name $order
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
55 | ERROR | [x] Expected 1 blank line after function; 2 found
58 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
59 | ERROR | [x] Doc comment short description must end with a full stop
60 | ERROR | [x] There must be exactly one blank line before the tags in a
| | doc comment
60 | ERROR | [ ] Missing parameter type
60 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found
| | 2
60 | ERROR | [x] Parameter comment must be on the next line
61 | ERROR | [ ] Missing parameter type
61 | ERROR | [x] Tag value indented incorrectly; expected 1 space but found
| | 2
61 | ERROR | [x] Parameter comment must be on the next line
62 | ERROR | [x] Separate the @param and @return sections by a blank line.
62 | ERROR | [ ] Return type missing for @return tag in function comment
62 | ERROR | [ ] Description for the @return value is missing
64 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
65 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
68 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
69 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 4
72 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
73 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 4
76 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
77 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 4
80 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
81 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 4
83 | ERROR | [x] Closing brace indented incorrectly; expected 1 spaces,
| | found 0
89 | ERROR | [x] Expected 1 space after IF keyword; 0 found
92 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
93 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
97 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
98 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
101 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/commerce_stripe_checkout/README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 5 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------
13 | WARNING | [ ] Line exceeds 80 characters; contains 356 characters
15 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
33 | WARNING | [ ] Line exceeds 80 characters; contains 112 characters
36 | WARNING | [ ] Line exceeds 80 characters; contains 146 characters
48 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
54 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: .../commerce_stripe_checkout/src/Event/CommerceStripeCheckoutPaymentEvent.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
27 | ERROR | [x] There must be no blank lines after the function comment
42 | ERROR | [x] Expected 1 newline at end of file; 0 found
42 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...d_cont/commerce_stripe_checkout/src/Event/CommerceStripeCheckoutEvents.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------
11 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
11 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
12 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
14 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
15 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
15 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 3 spaces, found 4
27 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...tml/vb/d_cont/commerce_stripe_checkout/src/Controller/StripeController.php
--------------------------------------------------------------------------------
FOUND 114 ERRORS AND 4 WARNINGS AFFECTING 89 LINES
--------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
17 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [ ] Doc comment for parameter $request does not match actual
| | variable name
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
27 | ERROR | [ ] Public method name "StripeController::payment_success" is
| | not in lowerCamel format
27 | ERROR | [x] Expected 1 blank line before function; 0 found
28 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
43 | 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
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
46 | ERROR | [x] Expected 1 space after IF keyword; 0 found
47 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
50 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
54 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
57 | 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 4 spaces, found 8
59 | ERROR | [x] Expected newline after closing brace
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 2 spaces, found 4
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [ ] Doc comment for parameter $request does not match actual
| | variable name
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [ ] Public method name "StripeController::payment_cancel" is
| | not in lowerCamel format
74 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
83 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
86 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
88 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
89 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
91 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
91 | ERROR | [x] Expected 1 space after IF keyword; 0 found
92 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
92 | ERROR | [x] Expected 1 space after "="; 2 found
93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
95 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
95 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
102 | ERROR | [x] Doc comment short description must start with a capital
| | letter
102 | ERROR | [x] Doc comment short description must end with a full stop
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
104 | ERROR | [ ] Public method name "StripeController::get_stripe_payment"
| | is not in lowerCamel format
105 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
107 | ERROR | [x] Expected 1 space before "??"; 0 found
107 | ERROR | [x] Expected 1 space after "??"; 0 found
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
112 | ERROR | [x] Doc comment short description must end with a full stop
114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
114 | ERROR | [ ] Public method name "StripeController::get_stripe_order" is
| | not in lowerCamel format
115 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
117 | ERROR | [x] Expected 1 space before "??"; 0 found
117 | ERROR | [x] Expected 1 space after "??"; 0 found
118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
119 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
122 | ERROR | [x] Doc comment short description must end with a full stop
124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
124 | ERROR | [ ] Public method name "StripeController::get_stripe_stsess"
| | is not in lowerCamel format
125 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
126 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
127 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
129 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
132 | ERROR | [x] Doc comment short description must end with a full stop
134 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
134 | ERROR | [ ] Public method name
| | "StripeController::unset_stripe_session" is not in
| | lowerCamel format
135 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
143 | ERROR | [x] Doc comment short description must end with a full stop
145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
145 | ERROR | [ ] Public method name "StripeController::redirect_homepage"
| | is not in lowerCamel format
146 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
147 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
147 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
| | but found "true"
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
151 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
151 | ERROR | [x] Expected 1 blank line after function; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 107 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...erce_stripe_checkout/src/PluginForm/CommerceStripeCheckoutCheckoutForm.php
--------------------------------------------------------------------------------
FOUND 28 ERRORS AND 7 WARNINGS AFFECTING 24 LINES
--------------------------------------------------------------------------------
12 | ERROR | [x] Missing class doc comment
27 | ERROR | [x] Expected 1 space after IF keyword; 0 found
28 | ERROR | [x] Expected 1 space before "??"; 0 found
28 | ERROR | [x] Expected 1 space after "??"; 0 found
29 | ERROR | [x] Expected newline after closing brace
30 | ERROR | [x] Expected 1 space before "??"; 0 found
30 | ERROR | [x] Expected 1 space after "??"; 0 found
53 | ERROR | [x] Short array syntax must be used to define arrays
61 | ERROR | [x] Short array syntax must be used to define arrays
71 | ERROR | [x] Expected 1 space before "*"; 0 found
71 | ERROR | [x] Expected 1 space after "*"; 0 found
72 | WARNING | [x] There must be no blank line following an inline comment
72 | WARNING | [ ] There must be no blank line following an inline comment
72 | ERROR | [x] Inline comments must start with a capital letter
72 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
91 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
91 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
92 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced
| | with use statements
94 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
| | but found "true"
95 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE"
| | but found "true"
97 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
97 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
98 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced
| | with use statements
106 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
106 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
109 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
110 | WARNING | [ ] Unused variable $plugin_config.
121 | ERROR | [x] Expected newline after closing brace
123 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
123 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
128 | ERROR | [x] Expected newline after closing brace
130 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
130 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
133 | ERROR | [x] Expected 1 blank line after function; 0 found
134 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 29 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...Plugin/Commerce/PaymentGateway/CommerceStripeCheckoutCheckoutInterface.php
--------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
--------------------------------------------------------------------------------
8 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
11 | ERROR | [x] Whitespace found at end of line
22 | ERROR | [x] Whitespace found at end of line
23 | ERROR | [x] Additional blank lines found at end of doc comment
24 | ERROR | [x] Expected 1 blank line after function; 0 found
25 | ERROR | [x] The closing brace for the interface must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...kout/src/Plugin/Commerce/PaymentGateway/CommerceStripeCheckoutCheckout.php
--------------------------------------------------------------------------------
FOUND 54 ERRORS AND 11 WARNINGS AFFECTING 55 LINES
--------------------------------------------------------------------------------
23 | ERROR | [x] There must be one blank line after the last USE statement;
| | 3 found;
26 | ERROR | [ ] More than 2 empty lines are not allowed
123 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
129 | WARNING | [ ] t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
179 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
198 | ERROR | [x] Concat operator must be surrounded by a single space
210 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
216 | ERROR | [x] Expected 1 space before "??"; 0 found
216 | ERROR | [x] Expected 1 space after "??"; 0 found
234 | ERROR | [x] Expected 1 space before "??"; 0 found
234 | ERROR | [x] Expected 1 space after "??"; 0 found
238 | ERROR | [x] Expected 1 space before "??"; 0 found
238 | ERROR | [x] Expected 1 space after "??"; 0 found
238 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
248 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
255 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
256 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
257 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
259 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
260 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
262 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
264 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
266 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
267 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
268 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
269 | ERROR | [x] Array closing indentation error, expected 4 spaces but
| | found 3
270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
270 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces,
| | found 1
273 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
274 | ERROR | [x] Expected 3 space(s) before asterisk; 4 found
292 | WARNING | [ ] Unused variable $payment.
301 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
311 | ERROR | [ ] Parameter $payment_state is not described in comment
315 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
317 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
343 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: )
353 | WARNING | [ ] Possible useless method overriding detected
359 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
362 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
364 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
366 | ERROR | [x] Expected "string" but found "string." for function return
| | type
367 | ERROR | [x] Return comment indentation must be 3 spaces, found 2
| | spaces
369 | ERROR | [ ] Type hint "array" missing for $data
381 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
382 | WARNING | [x] There must be no blank line following an inline comment
382 | WARNING | [ ] There must be no blank line following an inline comment
382 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
387 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
389 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
396 | ERROR | [x] Expected "string" but found "string." for function return
| | type
399 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
399 | ERROR | [ ] Private method name
| | "CommerceStripeCheckoutCheckout::hashSHA1" is not in
| | lowerCamel format
400 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
401 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
403 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
404 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
405 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
405 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces,
| | found 2
407 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
408 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
409 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
411 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
412 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
413 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
413 | ERROR | [x] Closing brace indented incorrectly; expected 1 spaces,
| | found 0
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 53 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: .../html/vb/d_cont/commerce_stripe_checkout/commerce_stripe_checkout.info.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
11 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 176ms; Memory: 12MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig commerce_stripe_checkout/

Remaining tasks

Patch Review

Comments

urvashi_vora created an issue. See original summary.

satish_kumar’s picture

StatusFileSize
new221.95 KB

Hello, @urvashi_vora thanks for the patch, I have applied your patch and ran successfully.

These are the steps I followed:

1. Took clone from git version and switch to branch 1.1.0 in drupal 10.1.x

2. Ran this command:

./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/commerce_stripe_checkout/

3. Applied your patch and, again ran phpcs command

after applied patch

found errors, some errors are fixed are with phpcbf but again found some errors.

Needs work.

sujan shrestha’s picture

Version: 1.1.0 » 1.2.2
Status: Needs review » Fixed
sujan shrestha’s picture

Status: Fixed » Closed (fixed)