capital_C_dangit WooCommerce

This commit is contained in:
David Remer 2020-09-03 07:05:50 +03:00
parent 3aa82347e5
commit 61038cc51e
32 changed files with 78 additions and 78 deletions

View file

@ -12,8 +12,8 @@ namespace Inpsyde\PayPalCommerce\WcGateway;
use Inpsyde\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
use Inpsyde\PayPalCommerce\Session\SessionHandler;
use Inpsyde\PayPalCommerce\WcGateway\Settings\Settings;
use Inpsyde\Woocommerce\Logging\Logger\NullLogger;
use Inpsyde\Woocommerce\Logging\Logger\WooCommerceLogger;
use Inpsyde\WooCommerce\Logging\Logger\NullLogger;
use Inpsyde\WooCommerce\Logging\Logger\WooCommerceLogger;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;

View file

@ -183,7 +183,7 @@ return array(
'sandbox_on' => array(
'title' => __( 'Sandbox', 'paypal-for-woocommerce' ),
'type' => 'checkbox',
'label' => __( 'To test your Woocommerce installation, you can use the sandbox mode.', 'paypal-for-woocommerce' ),
'label' => __( 'To test your WooCommerce installation, you can use the sandbox mode.', 'paypal-for-woocommerce' ),
'default' => 0,
'screens' => array(
State::STATE_START,

View file

@ -68,7 +68,7 @@ class OrderTablePaymentStatusColumn {
* Render the column.
*
* @param string $column The column.
* @param int $wc_order_id The id or the Woocommerce order.
* @param int $wc_order_id The id or the WooCommerce order.
*/
public function render( string $column, int $wc_order_id ) {
if ( ! $this->settings->has( 'intent' ) || $this->settings->get( 'intent' ) !== self::INTENT ) {
@ -96,7 +96,7 @@ class OrderTablePaymentStatusColumn {
/**
* Whether to render the authorization status of an order or not.
*
* @param \WC_Order $order The Woocommerce order.
* @param \WC_Order $order The WooCommerce order.
*
* @return bool
*/
@ -107,7 +107,7 @@ class OrderTablePaymentStatusColumn {
/**
* Whether the order has been captured or not.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WC_Order $wc_order The WooCommerce order.
*
* @return bool
*/

View file

@ -19,7 +19,7 @@ class PaymentStatusOrderDetail {
/**
* Renders the not captured information.
*
* @param int $wc_order_id The Woocommerce order id.
* @param int $wc_order_id The WooCommerce order id.
*/
public function render( int $wc_order_id ) {
$wc_order = new \WC_Order( $wc_order_id );

View file

@ -166,9 +166,9 @@ class PayPalGateway extends \WC_Payment_Gateway {
}
/**
* Process a payment for an Woocommerce order.
* Process a payment for an WooCommerce order.
*
* @param int $order_id The Woocommerce order id.
* @param int $order_id The WooCommerce order id.
*
* @return array|null
*/
@ -231,9 +231,9 @@ class PayPalGateway extends \WC_Payment_Gateway {
}
/**
* Captures an authorized payment for an Woocommerce order.
* Captures an authorized payment for an WooCommerce order.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WC_Order $wc_order The WooCommerce order.
*
* @return bool
*/

View file

@ -1,6 +1,6 @@
<?php
/**
* Authorizes payments for a given Woocommerce order.
* Authorizes payments for a given WooCommerce order.
*
* @package Inpsyde\PayPalCommerce\WcGateway\Processor
*/
@ -65,9 +65,9 @@ class AuthorizedPaymentsProcessor {
}
/**
* Process a Woocommerce order.
* Process a WooCommerce order.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WC_Order $wc_order The WooCommerce order.
*
* @return bool
*/
@ -112,9 +112,9 @@ class AuthorizedPaymentsProcessor {
}
/**
* Returns the PayPal order from a given Woocommerce order.
* Returns the PayPal order from a given WooCommerce order.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WC_Order $wc_order The WooCommerce order.
*
* @return Order
*/

View file

@ -122,10 +122,10 @@ class OrderProcessor {
}
/**
* Processes a given Woocommerce order and captured/authorizes the connected PayPal orders.
* Processes a given WooCommerce order and captured/authorizes the connected PayPal orders.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WooCommerce $woocommerce The Woocommerce object.
* @param \WC_Order $wc_order The WooCommerce order.
* @param \WooCommerce $woocommerce The WooCommerce object.
*
* @return bool
*/
@ -232,9 +232,9 @@ class OrderProcessor {
}
/**
* Patches a given PayPal order with a Woocommerce order.
* Patches a given PayPal order with a WooCommerce order.
*
* @param \WC_Order $wc_order The Woocommerce order.
* @param \WC_Order $wc_order The WooCommerce order.
* @param Order $order The PayPal order.
*
* @return Order