Skip to content

Commit

Permalink
Delint
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccluskey committed Jan 16, 2025
1 parent bb3a279 commit e0ebeb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/inc/payment-gateways/ppcp-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function get_from_order( $value, \WC_Order $order ) {
*
* @param mixed $selectable The thing to be selected from. Usually this would be an object or array but it could be anything.
* @param function $selector The function which takes `$selectable` as its input, performs an operation and returns the result.
*
* @return mixed|null
*/
function select_first( $selectable, $selector ) {
Expand All @@ -77,6 +78,7 @@ function select_first( $selectable, $selector ) {
* Select the first purchase unit or null if it could not be selected.
*
* @param WooCommerce\PayPalCommerce\ApiClient\Entity\Order $ppcp_data_order The PayPal Order object.
*
* @return WooCommerce\PayPalCommerce\ApiClient\Entity\PurchaseUnit|null The resulting PurchaseUnit if one is found.
*/
function select_first_purchase_unit( $ppcp_data_order ) {
Expand All @@ -90,6 +92,7 @@ function select_first_purchase_unit( $ppcp_data_order ) {
* Select the first payments authorization or null if it could not be selected.
*
* @param WooCommerce\PayPalCommerce\ApiClient\Entity\Order $ppcp_data_order The PayPal Order object.
*
* @return WooCommerce\PayPalCommerce\ApiClient\Entity\Authorization|null The resulting Authorization if one is found.
*/
function select_first_payments_authorization( $ppcp_data_order ) {
Expand All @@ -102,7 +105,8 @@ function select_first_payments_authorization( $ppcp_data_order ) {
/**
* Select the first payments caputure or null if it could not be selected.
*
* @param WooCommerce\PayPalCommerce\ApiClient\Entity\Order $ppcp_data_order The PayPal Order object.
* @param WooCommerce\PayPalCommerce\ApiClient\Entity\Order $ppcp_data_order The PayPal Order object
*
* @return WooCommerce\PayPalCommerce\ApiClient\Entity\Capture|null The resulting Capture if one is found.
*/
function select_first_payments_capture( $ppcp_data_order ) {
Expand Down

0 comments on commit e0ebeb4

Please sign in to comment.