mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
885 lines
33 KiB
XML
885 lines
33 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<files psalm-version="4.22.0@fc2c6ab4d5fa5d644d8617089f012f3bb84b8703">
|
|
<file src="modules/ppcp-api-client/services.php">
|
|
<UndefinedConstant occurrences="2">
|
|
<code>PAYPAL_API_URL</code>
|
|
<code>PAYPAL_API_URL</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Authentication/PayPalBearer.php">
|
|
<UndefinedMethod occurrences="1">
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/IdentityToken.php">
|
|
<UndefinedMethod occurrences="1">
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/LoginSeller.php">
|
|
<UndefinedMethod occurrences="2">
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php">
|
|
<PossiblyNullReference occurrences="2">
|
|
<code>authorizations</code>
|
|
<code>captures</code>
|
|
</PossiblyNullReference>
|
|
<RedundantCondition occurrences="2">
|
|
<code>$order->purchase_units()[0]->payments()->authorizations()[0]->status()</code>
|
|
<code>$order->purchase_units()[0]->payments()->captures()[0]->status()</code>
|
|
</RedundantCondition>
|
|
<TypeDoesNotContainNull occurrences="2">
|
|
<code>null</code>
|
|
<code>null</code>
|
|
</TypeDoesNotContainNull>
|
|
<UndefinedMethod occurrences="5">
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/PartnerReferrals.php">
|
|
<UndefinedMethod occurrences="1">
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/PaymentTokenEndpoint.php">
|
|
<UndefinedMethod occurrences="1">
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/PaymentsEndpoint.php">
|
|
<UndefinedMethod occurrences="3">
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/RequestTrait.php">
|
|
<PossiblyInvalidOperand occurrences="3">
|
|
<code>wc_print_r( $args['body'], true )</code>
|
|
<code>wc_print_r( $response['body'], true )</code>
|
|
<code>wc_print_r( $response['response'], true )</code>
|
|
</PossiblyInvalidOperand>
|
|
<TooManyArguments occurrences="1">
|
|
<code>apply_filters( 'ppcp_request_args', $args, $url )</code>
|
|
</TooManyArguments>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Endpoint/WebhookEndpoint.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>file_get_contents( 'php://input' )</code>
|
|
</PossiblyFalseArgument>
|
|
<UndefinedMethod occurrences="4">
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
<code>$response</code>
|
|
</UndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Amount.php">
|
|
<PossiblyNullPropertyAssignmentValue occurrences="1">
|
|
<code>$breakdown</code>
|
|
</PossiblyNullPropertyAssignmentValue>
|
|
<PossiblyNullReference occurrences="2">
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Item.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Order.php">
|
|
<PossiblyNullReference occurrences="5">
|
|
<code>format</code>
|
|
<code>format</code>
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
<RedundantConditionGivenDocblockType occurrences="1">
|
|
<code>return is_a( $unit, PurchaseUnit::class );</code>
|
|
</RedundantConditionGivenDocblockType>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Payer.php">
|
|
<PossiblyNullPropertyAssignmentValue occurrences="1">
|
|
<code>$address</code>
|
|
</PossiblyNullPropertyAssignmentValue>
|
|
<PossiblyNullReference occurrences="4">
|
|
<code>country_code</code>
|
|
<code>format</code>
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/PaymentSource.php">
|
|
<PossiblyNullReference occurrences="2">
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/PaymentSourceCard.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/PurchaseUnit.php">
|
|
<PossiblyNullReference occurrences="3">
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Refund.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/SellerStatus.php">
|
|
<RedundantConditionGivenDocblockType occurrences="1">
|
|
<code>is_a( $product, SellerStatusProduct::class )</code>
|
|
</RedundantConditionGivenDocblockType>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/SellerStatusProduct.php">
|
|
<RedundantConditionGivenDocblockType occurrences="1">
|
|
<code>is_string( $capability )</code>
|
|
</RedundantConditionGivenDocblockType>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Token.php">
|
|
<FalsableReturnStatement occurrences="1">
|
|
<code>wp_json_encode( $this->json )</code>
|
|
</FalsableReturnStatement>
|
|
<InvalidFalsableReturnType occurrences="1">
|
|
<code>string</code>
|
|
</InvalidFalsableReturnType>
|
|
<LessSpecificReturnStatement occurrences="1">
|
|
<code>new Token( $json )</code>
|
|
</LessSpecificReturnStatement>
|
|
<MoreSpecificReturnType occurrences="1">
|
|
<code>static</code>
|
|
</MoreSpecificReturnType>
|
|
<PropertyNotSetInConstructor occurrences="1">
|
|
<code>$created</code>
|
|
</PropertyNotSetInConstructor>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Entity/Webhook.php">
|
|
<InvalidPropertyAssignmentValue occurrences="1">
|
|
<code>$event_types</code>
|
|
</InvalidPropertyAssignmentValue>
|
|
<InvalidPropertyFetch occurrences="1">
|
|
<code>$event->name</code>
|
|
</InvalidPropertyFetch>
|
|
<InvalidReturnStatement occurrences="1">
|
|
<code>$this->event_types</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>stdClass[]</code>
|
|
</InvalidReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Exception/PayPalApiException.php">
|
|
<PossiblyNullArgument occurrences="1">
|
|
<code>$this->status_code</code>
|
|
</PossiblyNullArgument>
|
|
<UninitializedProperty occurrences="1">
|
|
<code>$this->status_code</code>
|
|
</UninitializedProperty>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Factory/AmountFactory.php">
|
|
<InvalidOperand occurrences="4">
|
|
<code>$cart->get_cart_contents_total() + $cart->get_discount_total() + $total_fees_amount</code>
|
|
<code>$item->quantity() * $item->tax()->value()</code>
|
|
<code>$item->quantity() * $item->unit_amount()->value()</code>
|
|
<code>$total_fees_amount += (float) $fee->amount</code>
|
|
</InvalidOperand>
|
|
<PossiblyInvalidIterator occurrences="1">
|
|
<code>WC()->session->get( 'ppcp_fees' )</code>
|
|
</PossiblyInvalidIterator>
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>value</code>
|
|
</PossiblyNullReference>
|
|
<RedundantCast occurrences="1">
|
|
<code>(float) $item_total</code>
|
|
</RedundantCast>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Factory/ItemFactory.php">
|
|
<ArgumentTypeCoercion occurrences="1"/>
|
|
<PossiblyInvalidArgument occurrences="1">
|
|
<code>$fees_from_session</code>
|
|
</PossiblyInvalidArgument>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Factory/PayerFactory.php">
|
|
<PossiblyNullArgument occurrences="2">
|
|
<code>$national_number</code>
|
|
<code>$national_number</code>
|
|
</PossiblyNullArgument>
|
|
<TooManyArguments occurrences="1">
|
|
<code>from_wc_order</code>
|
|
</TooManyArguments>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php">
|
|
<RedundantConditionGivenDocblockType occurrences="1">
|
|
<code>$this->shipping_needed( ... array_values( $items ) ) && is_a( $customer, \WC_Customer::class )</code>
|
|
</RedundantConditionGivenDocblockType>
|
|
<TooManyArguments occurrences="1"/>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Factory/WebhookEventFactory.php">
|
|
<RedundantCondition occurrences="5">
|
|
<code>(object) $data->resource</code>
|
|
<code>(string) $data->event_version</code>
|
|
<code>(string) $data->resource_type</code>
|
|
<code>(string) $data->resource_version</code>
|
|
<code>(string) $data->summary</code>
|
|
</RedundantCondition>
|
|
<TypeDoesNotContainNull occurrences="5">
|
|
<code>''</code>
|
|
<code>''</code>
|
|
<code>''</code>
|
|
<code>''</code>
|
|
<code>new stdClass()</code>
|
|
</TypeDoesNotContainNull>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Helper/Cache.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>delete</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Repository/ApplicationContextRepository.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>strrpos( $locale, '-' )</code>
|
|
</PossiblyFalseArgument>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Repository/PayPalRequestIdRepository.php">
|
|
<UndefinedConstant occurrences="1">
|
|
<code>DAY_IN_SECONDS</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Helper/OrderTransient.php">
|
|
<UndefinedConstant occurrences="1">
|
|
<code>DAY_IN_SECONDS</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-api-client/src/Helper/FailureRegistry.php">
|
|
<UndefinedConstant occurrences="1">
|
|
<code>DAY_IN_SECONDS</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-button/services.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
<UndefinedConstant occurrences="2">
|
|
<code>CONNECT_WOO_CLIENT_ID</code>
|
|
<code>CONNECT_WOO_SANDBOX_CLIENT_ID</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Assets/SmartButton.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$id</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="3">
|
|
<code>button_renderer</code>
|
|
<code>dcc_renderer</code>
|
|
<code>message_renderer</code>
|
|
</MissingReturnType>
|
|
<UndefinedConstant occurrences="1">
|
|
<code>PAYPAL_INTEGRATION_DATE</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/ButtonModule.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$value</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="1">
|
|
<code>register_ajax_endpoints</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Endpoint/ApproveOrderEndpoint.php">
|
|
<PossiblyNullReference occurrences="3">
|
|
<code>brand</code>
|
|
<code>card</code>
|
|
<code>card</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Endpoint/CreateOrderEndpoint.php">
|
|
<MissingReturnType occurrences="2">
|
|
<code>set_bn_code</code>
|
|
<code>validate_paynow_form</code>
|
|
</MissingReturnType>
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>wp_json_encode( $data['payer'] )</code>
|
|
</PossiblyFalseArgument>
|
|
<PossiblyInvalidArgument occurrences="3">
|
|
<code>$wc_order</code>
|
|
<code>$wc_order</code>
|
|
<code>$wc_order</code>
|
|
</PossiblyInvalidArgument>
|
|
<PossiblyNullArgument occurrences="2">
|
|
<code>$number</code>
|
|
<code>$wc_order</code>
|
|
</PossiblyNullArgument>
|
|
<PropertyNotSetInConstructor occurrences="2">
|
|
<code>$parsed_request_data</code>
|
|
<code>$purchase_units</code>
|
|
</PropertyNotSetInConstructor>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Endpoint/RequestData.php">
|
|
<MissingReturnType occurrences="2">
|
|
<code>dequeue_nonce_fix</code>
|
|
<code>enqueue_nonce_fix</code>
|
|
</MissingReturnType>
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>$stream</code>
|
|
</PossiblyFalseArgument>
|
|
<PossiblyInvalidArgument occurrences="1">
|
|
<code>$json</code>
|
|
</PossiblyInvalidArgument>
|
|
<RedundantCast occurrences="2">
|
|
<code>(array) $assoc_array</code>
|
|
<code>(string) $raw_key</code>
|
|
</RedundantCast>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Helper/EarlyOrderHandler.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$order_id</code>
|
|
</MissingClosureParamType>
|
|
<PossiblyInvalidArgument occurrences="2">
|
|
<code>$wc_order</code>
|
|
<code>wp_unslash( $_REQUEST['ppcp-resume-order'] )</code>
|
|
</PossiblyInvalidArgument>
|
|
<PossiblyInvalidMethodCall occurrences="3">
|
|
<code>save_meta_data</code>
|
|
<code>update_meta_data</code>
|
|
<code>update_meta_data</code>
|
|
</PossiblyInvalidMethodCall>
|
|
<RedundantCast occurrences="1">
|
|
<code>(int) $this->sanitize_custom_id( $purchase_unit->custom_id() )</code>
|
|
</RedundantCast>
|
|
</file>
|
|
<file src="modules/ppcp-button/src/Helper/ThreeDSecure.php">
|
|
<PossiblyInvalidOperand occurrences="1">
|
|
<code>wc_print_r( $result->to_array(), true )</code>
|
|
</PossiblyInvalidOperand>
|
|
<PossiblyNullReference occurrences="6">
|
|
<code>authentication_result</code>
|
|
<code>authentication_result</code>
|
|
<code>card</code>
|
|
<code>card</code>
|
|
<code>card</code>
|
|
<code>to_array</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-compat/services.php">
|
|
<MissingClosureParamType occurrences="2">
|
|
<code>$container</code>
|
|
<code>$container</code>
|
|
</MissingClosureParamType>
|
|
</file>
|
|
<file src="modules/ppcp-compat/src/CompatModule.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>get</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-compat/src/PPEC/DeactivateNote.php">
|
|
<UndefinedTrait occurrences="1">
|
|
<code>NoteTraits</code>
|
|
</UndefinedTrait>
|
|
</file>
|
|
<file src="modules/ppcp-compat/src/PPEC/SettingsImporter.php">
|
|
<UndefinedFunction occurrences="1">
|
|
<code>wc_gateway_ppec()</code>
|
|
</UndefinedFunction>
|
|
</file>
|
|
<file src="modules/ppcp-compat/src/PPEC/SubscriptionsHandler.php">
|
|
<PossiblyInvalidMethodCall occurrences="1">
|
|
<code>get_payment_method</code>
|
|
</PossiblyInvalidMethodCall>
|
|
<PossiblyNullPropertyFetch occurrences="2">
|
|
<code>get_current_screen()->id</code>
|
|
<code>get_current_screen()->id</code>
|
|
</PossiblyNullPropertyFetch>
|
|
<PossiblyUndefinedMethod occurrences="1">
|
|
<code>get_payment_method</code>
|
|
</PossiblyUndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-onboarding/services.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$container</code>
|
|
</MissingClosureParamType>
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
<UndefinedConstant occurrences="10">
|
|
<code>CONNECT_WOO_MERCHANT_ID</code>
|
|
<code>CONNECT_WOO_SANDBOX_MERCHANT_ID</code>
|
|
<code>CONNECT_WOO_SANDBOX_URL</code>
|
|
<code>CONNECT_WOO_SANDBOX_URL</code>
|
|
<code>CONNECT_WOO_URL</code>
|
|
<code>CONNECT_WOO_URL</code>
|
|
<code>PAYPAL_API_URL</code>
|
|
<code>PAYPAL_API_URL</code>
|
|
<code>PAYPAL_SANDBOX_API_URL</code>
|
|
<code>PAYPAL_SANDBOX_API_URL</code>
|
|
</UndefinedConstant>
|
|
</file>
|
|
<file src="modules/ppcp-onboarding/src/OnboardingModule.php">
|
|
<MissingClosureParamType occurrences="3">
|
|
<code>$config</code>
|
|
<code>$field</code>
|
|
<code>$key</code>
|
|
</MissingClosureParamType>
|
|
</file>
|
|
<file src="modules/ppcp-onboarding/src/OnboardingRESTController.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>register_routes</code>
|
|
</MissingReturnType>
|
|
<PossiblyNullPropertyAssignmentValue occurrences="1">
|
|
<code>null</code>
|
|
</PossiblyNullPropertyAssignmentValue>
|
|
<RedundantConditionGivenDocblockType occurrences="2">
|
|
<code>! empty( $url_args ) && is_array( $url_args )</code>
|
|
<code>is_array( $url_args )</code>
|
|
</RedundantConditionGivenDocblockType>
|
|
<UndefinedDocblockClass occurrences="5">
|
|
<code>WP_Error|array</code>
|
|
<code>WP_REST_Request</code>
|
|
<code>WP_REST_Request</code>
|
|
<code>WP_REST_Request</code>
|
|
<code>WP_REST_Request</code>
|
|
</UndefinedDocblockClass>
|
|
</file>
|
|
<file src="modules/ppcp-onboarding/src/Render/OnboardingRenderer.php">
|
|
<MissingReturnType occurrences="2">
|
|
<code>render</code>
|
|
<code>render_button</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-session/services.php">
|
|
<TypeDoesNotContainType occurrences="1">
|
|
<code>is_a( $result, SessionHandler::class )</code>
|
|
</TypeDoesNotContainType>
|
|
</file>
|
|
<file src="modules/ppcp-session/src/Cancellation/CancelController.php">
|
|
<InvalidOperand occurrences="1">
|
|
<code>get_current_user_id()</code>
|
|
</InvalidOperand>
|
|
<MissingReturnType occurrences="1">
|
|
<code>run</code>
|
|
</MissingReturnType>
|
|
<PossiblyInvalidArgument occurrences="1">
|
|
<code>wp_unslash( $_GET[ $param_name ] )</code>
|
|
</PossiblyInvalidArgument>
|
|
</file>
|
|
<file src="modules/ppcp-session/src/Cancellation/CancelView.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>render_session_cancellation</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-session/src/SessionHandler.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>store_session</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-status-report/src/StatusReportModule.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>getKey</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-subscription/src/RenewalHandler.php">
|
|
<FalsableReturnStatement occurrences="1">
|
|
<code>current( $tokens )</code>
|
|
</FalsableReturnStatement>
|
|
<MissingReturnType occurrences="2">
|
|
<code>process_order</code>
|
|
<code>renew</code>
|
|
</MissingReturnType>
|
|
<TooManyArguments occurrences="1">
|
|
<code>apply_filters( 'woocommerce_paypal_payments_subscriptions_get_token_for_customer', null, $customer, $wc_order )</code>
|
|
</TooManyArguments>
|
|
</file>
|
|
<file src="modules/ppcp-subscription/src/SubscriptionModule.php">
|
|
<MissingClosureParamType occurrences="9">
|
|
<code>$amount</code>
|
|
<code>$amount</code>
|
|
<code>$default_fields</code>
|
|
<code>$description</code>
|
|
<code>$id</code>
|
|
<code>$id</code>
|
|
<code>$order</code>
|
|
<code>$order</code>
|
|
<code>$subscription</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="1">
|
|
<code>add_payment_token_id</code>
|
|
</MissingReturnType>
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>get</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/services.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/src/Assets/MyAccountPaymentsAssets.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>localize</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/src/Endpoint/DeletePaymentTokenEndpoint.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>handle_request</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/src/PaymentTokenRepository.php">
|
|
<PossiblyFalseReference occurrences="1">
|
|
<code>to_array</code>
|
|
</PossiblyFalseReference>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/src/PaymentTokensRenderer.php">
|
|
<RedundantCondition occurrences="1">
|
|
<code>$token->source()</code>
|
|
</RedundantCondition>
|
|
<TypeDoesNotContainNull occurrences="1">
|
|
<code>null</code>
|
|
</TypeDoesNotContainNull>
|
|
</file>
|
|
<file src="modules/ppcp-vaulting/src/VaultingModule.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$menu_links</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="1">
|
|
<code>getKey</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/services.php">
|
|
<PossiblyFalseArgument occurrences="2">
|
|
<code>realpath( __FILE__ )</code>
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
<PossiblyFalseOperand occurrences="1">
|
|
<code>substr( $letters, 0, 6 )</code>
|
|
</PossiblyFalseOperand>
|
|
<PossiblyInvalidArgument occurrences="5">
|
|
<code>wp_unslash( $_GET[ SectionsRenderer::KEY ] )</code>
|
|
<code>wp_unslash( $_GET['page'] )</code>
|
|
<code>wp_unslash( $_GET['section'] )</code>
|
|
<code>wp_unslash( $_GET['section'] )</code>
|
|
<code>wp_unslash( $_GET['tab'] )</code>
|
|
</PossiblyInvalidArgument>
|
|
<PossiblyNullArgument occurrences="1">
|
|
<code>$letters</code>
|
|
</PossiblyNullArgument>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Admin/OrderTablePaymentStatusColumn.php">
|
|
<MissingReturnType occurrences="3">
|
|
<code>render</code>
|
|
<code>render_completed_status</code>
|
|
<code>render_incomplete_status</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Admin/PaymentStatusOrderDetail.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>render</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Assets/SettingsPageAssets.php">
|
|
<MissingReturnType occurrences="2">
|
|
<code>register_admin_assets</code>
|
|
<code>register_assets</code>
|
|
</MissingReturnType>
|
|
<PossiblyNullPropertyFetch occurrences="1">
|
|
<code>$screen->id</code>
|
|
</PossiblyNullPropertyFetch>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Checkout/CheckoutPayPalAddressPreset.php">
|
|
<PossiblyNullReference occurrences="3">
|
|
<code>phone</code>
|
|
<code>phone</code>
|
|
<code>purchase_units</code>
|
|
</PossiblyNullReference>
|
|
<RedundantCondition occurrences="5">
|
|
<code>null</code>
|
|
<code>null</code>
|
|
<code>null</code>
|
|
<code>null</code>
|
|
<code>null</code>
|
|
</RedundantCondition>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>card</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Endpoint/ReturnUrlEndpoint.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$allowed_hosts</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="1">
|
|
<code>handle_request</code>
|
|
</MissingReturnType>
|
|
<PossiblyInvalidArgument occurrences="1">
|
|
<code>wp_unslash( $_GET['token'] )</code>
|
|
</PossiblyInvalidArgument>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Helper/DCCProductStatus.php">
|
|
<InvalidPropertyAssignmentValue occurrences="2">
|
|
<code>true</code>
|
|
<code>true</code>
|
|
</InvalidPropertyAssignmentValue>
|
|
<PossiblyFalsePropertyAssignmentValue occurrences="2">
|
|
<code>false</code>
|
|
<code>false</code>
|
|
</PossiblyFalsePropertyAssignmentValue>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Notice/AuthorizeOrderActionNotice.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$location</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="1">
|
|
<code>display_message</code>
|
|
</MissingReturnType>
|
|
<PossiblyUndefinedVariable occurrences="1">
|
|
<code>$messages</code>
|
|
</PossiblyUndefinedVariable>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Processor/AuthorizedPaymentsProcessor.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>authorizations</code>
|
|
</PossiblyNullReference>
|
|
<PropertyNotSetInConstructor occurrences="1">
|
|
<code>$captures</code>
|
|
</PropertyNotSetInConstructor>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php">
|
|
<PossiblyNullReference occurrences="1">
|
|
<code>card</code>
|
|
</PossiblyNullReference>
|
|
<PropertyNotSetInConstructor occurrences="1">
|
|
<code>$payment_token_repository</code>
|
|
</PropertyNotSetInConstructor>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php">
|
|
<PossiblyNullReference occurrences="2">
|
|
<code>authorizations</code>
|
|
<code>captures</code>
|
|
</PossiblyNullReference>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Processor/RefundProcessor.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>wp_json_encode( $payments->to_array() )</code>
|
|
</PossiblyFalseArgument>
|
|
<PossiblyNullArgument occurrences="1">
|
|
<code>$amount</code>
|
|
</PossiblyNullArgument>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Settings/SectionsRenderer.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>render</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Settings/Settings.php">
|
|
<MissingReturnType occurrences="2">
|
|
<code>persist</code>
|
|
<code>set</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Settings/SettingsListener.php">
|
|
<MissingReturnType occurrences="3">
|
|
<code>listen</code>
|
|
<code>listen_for_merchant_id</code>
|
|
<code>listen_for_vaulting_enabled</code>
|
|
</MissingReturnType>
|
|
<PossiblyInvalidArgument occurrences="5">
|
|
<code>wp_unslash( $_GET['merchantId'] )</code>
|
|
<code>wp_unslash( $_GET['merchantIdInPayPal'] )</code>
|
|
<code>wp_unslash( $_GET['ppcpToken'] )</code>
|
|
<code>wp_unslash( $_GET['ppcpRetry'] )</code>
|
|
<code>wp_unslash( $_POST['ppcp-nonce'] )</code>
|
|
</PossiblyInvalidArgument>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/Settings/SettingsRenderer.php">
|
|
<InvalidArgument occurrences="1">
|
|
<code>$value</code>
|
|
</InvalidArgument>
|
|
<InvalidOperand occurrences="3">
|
|
<code>$field</code>
|
|
<code>$field</code>
|
|
<code>$field</code>
|
|
</InvalidOperand>
|
|
<MissingReturnType occurrences="5">
|
|
<code>render</code>
|
|
<code>render_dcc_does_not_apply_info</code>
|
|
<code>render_dcc_not_active_yet</code>
|
|
<code>render_dcc_onboarding_info</code>
|
|
<code>render_text</code>
|
|
</MissingReturnType>
|
|
<RedundantCast occurrences="1">
|
|
<code>(int) $colspan</code>
|
|
</RedundantCast>
|
|
</file>
|
|
<file src="modules/ppcp-wc-gateway/src/WCGatewayModule.php">
|
|
<MissingClosureParamType occurrences="13">
|
|
<code>$args</code>
|
|
<code>$args</code>
|
|
<code>$column</code>
|
|
<code>$columns</code>
|
|
<code>$field</code>
|
|
<code>$key</code>
|
|
<code>$methods</code>
|
|
<code>$methods</code>
|
|
<code>$notices</code>
|
|
<code>$order_actions</code>
|
|
<code>$value</code>
|
|
<code>$wc_order_id</code>
|
|
<code>$wc_order_id</code>
|
|
</MissingClosureParamType>
|
|
<MissingReturnType occurrences="4">
|
|
<code>register_checkout_paypal_address_preset</code>
|
|
<code>register_columns</code>
|
|
<code>register_order_functionality</code>
|
|
<code>register_payment_gateways</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/extensions.php">
|
|
<MissingClosureParamType occurrences="1">
|
|
<code>$container</code>
|
|
</MissingClosureParamType>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/services.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Endpoint/ResubscribeEndpoint.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>handle_request</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Endpoint/SimulateEndpoint.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>handle_request</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Endpoint/SimulationStateEndpoint.php">
|
|
<MissingReturnType occurrences="1">
|
|
<code>handle_request</code>
|
|
</MissingReturnType>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Handler/CheckoutOrderApproved.php">
|
|
<InvalidReturnStatement occurrences="5">
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>\WP_REST_Response</code>
|
|
</InvalidReturnType>
|
|
<PossibleRawObjectIteration occurrences="1">
|
|
<code>$wc_orders</code>
|
|
</PossibleRawObjectIteration>
|
|
<PossiblyNullArgument occurrences="5">
|
|
<code>$request['resource']['id']</code>
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['resource']['id'] ) ? $request['resource']['id'] : ''</code>
|
|
</PossiblyNullArgument>
|
|
<PossiblyNullArrayAccess occurrences="3">
|
|
<code>$request['resource']['id']</code>
|
|
<code>$request['resource']['id']</code>
|
|
<code>$request['resource']['purchase_units']</code>
|
|
</PossiblyNullArrayAccess>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Handler/CheckoutOrderCompleted.php">
|
|
<InvalidReturnStatement occurrences="3">
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>\WP_REST_Response</code>
|
|
</InvalidReturnType>
|
|
<PossibleRawObjectIteration occurrences="1">
|
|
<code>$wc_orders</code>
|
|
</PossibleRawObjectIteration>
|
|
<PossiblyNullArgument occurrences="2">
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['resource']['id'] ) ? $request['resource']['id'] : ''</code>
|
|
</PossiblyNullArgument>
|
|
<PossiblyNullArrayAccess occurrences="2">
|
|
<code>$request['resource']['id']</code>
|
|
<code>$request['resource']['purchase_units']</code>
|
|
</PossiblyNullArrayAccess>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Handler/PaymentCaptureRefunded.php">
|
|
<InvalidReturnStatement occurrences="4">
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>\WP_REST_Response</code>
|
|
</InvalidReturnType>
|
|
<PossiblyNullArgument occurrences="3">
|
|
<code>$request['resource']['custom_id']</code>
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['resource']['id'] ) ? $request['resource']['id'] : ''</code>
|
|
</PossiblyNullArgument>
|
|
<PossiblyNullArrayAccess occurrences="3">
|
|
<code>$request['resource']['amount']</code>
|
|
<code>$request['resource']['custom_id']</code>
|
|
<code>$request['resource']['id']</code>
|
|
</PossiblyNullArrayAccess>
|
|
<PossiblyUndefinedMethod occurrences="2">
|
|
<code>get_amount</code>
|
|
<code>get_error_message</code>
|
|
</PossiblyUndefinedMethod>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/Handler/PaymentCaptureReversed.php">
|
|
<InvalidReturnStatement occurrences="3">
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
<code>rest_ensure_response( $response )</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>\WP_REST_Response</code>
|
|
</InvalidReturnType>
|
|
<PossiblyNullArgument occurrences="3">
|
|
<code>$request['resource']['custom_id']</code>
|
|
<code>isset( $request['id'] ) ? $request['id'] : ''</code>
|
|
<code>isset( $request['resource']['id'] ) ? $request['resource']['id'] : ''</code>
|
|
</PossiblyNullArgument>
|
|
<PossiblyNullArrayAccess occurrences="2">
|
|
<code>$request['resource']['custom_id']</code>
|
|
<code>$request['resource']['id']</code>
|
|
</PossiblyNullArrayAccess>
|
|
</file>
|
|
<file src="modules/ppcp-webhooks/src/IncomingWebhookEndpoint.php">
|
|
<InvalidReturnStatement occurrences="2">
|
|
<code>rest_ensure_response( $response )</code>
|
|
</InvalidReturnStatement>
|
|
<InvalidReturnType occurrences="1">
|
|
<code>\WP_REST_Response</code>
|
|
</InvalidReturnType>
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>( $handler->event_types() ) ? current( $handler->event_types() ) : ''</code>
|
|
</PossiblyFalseArgument>
|
|
<PossiblyNullArgument occurrences="1">
|
|
<code>$request['event_type']</code>
|
|
</PossiblyNullArgument>
|
|
</file>
|
|
<file src="src/services.php">
|
|
<PossiblyFalseArgument occurrences="1">
|
|
<code>realpath( __FILE__ )</code>
|
|
</PossiblyFalseArgument>
|
|
</file>
|
|
</files>
|