v4.3.0 #34
ci.yaml
on: push
phpcs
/
phpcs
26s
phpstan
/
phpstan
23s
Matrix: phplint / phplint
Annotations
20 errors and 10 warnings
phpstan / phpstan:
src/AddOn.php#L27
Class Pronamic\WordPress\Pay\Extensions\EventEspresso\AddOn extends unknown class EE_Addon.
|
phpstan / phpstan:
src/AddOn.php#L34
Method Pronamic\WordPress\Pay\Extensions\EventEspresso\AddOn::register_addon() has no return type specified.
|
phpstan / phpstan:
src/AddOn.php#L66
Call to static method register() on an unknown class EE_Register_Addon.
|
phpstan / phpstan:
src/AlipayPaymentMethod.php#L41
Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
|
phpstan / phpstan:
src/AlipayPaymentMethod.php#L42
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_gateway.
|
phpstan / phpstan:
src/AlipayPaymentMethod.php#L43
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\AlipayPaymentMethod::$_pretty_name.
|
phpstan / phpstan:
src/AlipayPaymentMethod.php#L45
Parameter #1 $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\PaymentMethod::__construct() expects EE_Payment_Method|null, Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method|null given.
|
phpstan / phpstan:
src/BancontactPaymentMethod.php#L41
Parameter $pm_instance of method Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::__construct() has invalid type Pronamic\WordPress\Pay\Extensions\EventEspresso\EE_Payment_Method.
|
phpstan / phpstan:
src/BancontactPaymentMethod.php#L42
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_gateway.
|
phpstan / phpstan:
src/BancontactPaymentMethod.php#L43
Access to an undefined property Pronamic\WordPress\Pay\Extensions\EventEspresso\BancontactPaymentMethod::$_pretty_name.
|
|
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L20
Expected 14 spaces after parameter type; 1 found
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L21
Expected 14 spaces after parameter type; 1 found
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L26
Expected 1 space before opening brace; found 0
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L28
Missing short description in doc comment
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L39
Short array syntax must be used to define arrays
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L39
Short array syntax must be used to define arrays
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L39
Short array syntax must be used to define arrays
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L45
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L39
Use of a direct database call is discouraged.
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php#L39
Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L34
This comment is 67% valid code; is this commented out code?
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php#L39
This comment is 67% valid code; is this commented out code?
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/DryRun_ActionMigrator.php#L24
Words in hook names should be separated using underscores. Expected: 'action_scheduler_migrate_action_dry_run', but found: 'action_scheduler/migrate_action_dry_run'.
|
phpcs / phpcs:
packages/wp-pay/core/src/LicenseManager.php#L281
wp_remote_get() is highly discouraged. Please use vip_safe_wp_remote_get() instead which is designed to more gracefully handle failure than wp_remote_get() does.
|
phpcs / phpcs:
packages/wp-pay/core/src/LicenseManager.php#L329
wp_remote_get() is highly discouraged. Please use vip_safe_wp_remote_get() instead which is designed to more gracefully handle failure than wp_remote_get() does.
|
phpcs / phpcs:
packages/wp-pay/core/src/LicenseManager.php#L353
wp_remote_get() is highly discouraged. Please use vip_safe_wp_remote_get() instead which is designed to more gracefully handle failure than wp_remote_get() does.
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionMigrator.php#L63
Words in hook names should be separated using underscores. Expected: 'action_scheduler_no_action_to_migrate', but found: 'action_scheduler/no_action_to_migrate'.
|
phpcs / phpcs:
packages/woocommerce/action-scheduler/classes/migration/ActionMigrator.php#L75
Words in hook names should be separated using underscores. Expected: 'action_scheduler_migrate_action_failed', but found: 'action_scheduler/migrate_action_failed'.
|