You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 | ERROR | [x] Header blocks must be separated by a single blank
| | line
16 | ERROR | [ ] Class name "Plugin_Factory" is not in PascalCase
| | format
19 | WARNING | [ ] Property name "$_plugin" should not be prefixed
| | with an underscore to indicate visibility
28 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1
| | found
28 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1
| | found
30 | ERROR | [x] Expected 0 spaces before closing bracket; 1 found
36 | ERROR | [x] The closing brace for the class must go on the
| | next line after the body
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
`
And I have this question on the end : I can fix some stuff automatically, do you want me to? (yes/no) [no]:
When I write yes nothing is fixed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I launch this command :
php vendor/bin/grumphp run
After I have all errors, for exemple :
`FILE: ...-content\plugins\sync-woocommerce\src\Plugin_Factory.php
FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES
1 | ERROR | [x] Header blocks must be separated by a single blank
| | line
16 | ERROR | [ ] Class name "Plugin_Factory" is not in PascalCase
| | format
19 | WARNING | [ ] Property name "$_plugin" should not be prefixed
| | with an underscore to indicate visibility
28 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1
| | found
28 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1
| | found
30 | ERROR | [x] Expected 0 spaces before closing bracket; 1 found
36 | ERROR | [x] The closing brace for the class must go on the
| | next line after the body
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
`
And I have this question on the end :
I can fix some stuff automatically, do you want me to? (yes/no) [no]:
When I write
yes
nothing is fixed.How can I fix automatically?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions