Skip to content

Instantly share code, notes, and snippets.

@rjchow
Created April 1, 2022 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjchow/612e2bc20eb3ce501f5a9cca67f504fb to your computer and use it in GitHub Desktop.
Save rjchow/612e2bc20eb3ce501f5a9cca67f504fb to your computer and use it in GitHub Desktop.
FILE: plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
235 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
238 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/API/Marketing.php
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
109 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
115 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaysController.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
20 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
20 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/Features.php
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
85 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
152 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Notes/Note.php
----------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------
619 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
| | (Squiz.Commenting.FunctionComment.SpacingAfterParamType)
620 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
| | (Squiz.Commenting.FunctionComment.SpacingAfterParamType)
621 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
| | (Squiz.Commenting.FunctionComment.SpacingAfterParamType)
622 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
| | (Squiz.Commenting.FunctionComment.SpacingAfterParamType)
624 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
| | (Squiz.Commenting.FunctionComment.SpacingAfterParamType)
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
106 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
106 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/Navigation/CoreMenu.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
38 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
38 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/API/Notes.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
487 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Notes/Notes.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
23 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
23 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/Navigation/Favorites.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
86 | ERROR | [x] Short array syntax is not allowed
| | (Generic.Arrays.DisallowShortArraySyntax.Found)
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/PluginsHelper.php
----------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
24 | ERROR | [ ] The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
24 | ERROR | [ ] The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
382 | ERROR | [x] Short array syntax is not allowed (Generic.Arrays.DisallowShortArraySyntax.Found)
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/Navigation/Menu.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
99 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
99 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/ReportsSync.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
21 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
21 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
102 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
102 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
68 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
68 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
FILE: plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
69 | ERROR | The injection method must be marked final
| | (WooCommerce.Functions.InternalInjectionMethod.MissingFinal)
69 | ERROR | The injection method requires an '@internal' annotation
| | (WooCommerce.Functions.InternalInjectionMethod.MissingInternalTag)
----------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment