mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
codestyle
This commit is contained in:
parent
c788341887
commit
9e2f1f4bf9
11 changed files with 27 additions and 26 deletions
|
@ -225,13 +225,13 @@ class Order {
|
|||
),
|
||||
);
|
||||
if ( $this->create_time() ) {
|
||||
$order['create_time'] = $this->create_time()->format( "Y-m-d\TH:i:sO" );
|
||||
$order['create_time'] = $this->create_time()->format( 'Y-m-d\TH:i:sO' );
|
||||
}
|
||||
if ( $this->payer() ) {
|
||||
$order['payer'] = $this->payer()->to_array();
|
||||
}
|
||||
if ( $this->update_time() ) {
|
||||
$order['update_time'] = $this->update_time()->format( "Y-m-d\TH:i:sO" );
|
||||
$order['update_time'] = $this->update_time()->format( 'Y-m-d\TH:i:sO' );
|
||||
}
|
||||
if ( $this->application_context() ) {
|
||||
$order['application_context'] = $this->application_context()->to_array();
|
||||
|
|
|
@ -141,10 +141,10 @@ class OrderFactory {
|
|||
);
|
||||
|
||||
$create_time = ( isset( $order_data->create_time ) ) ?
|
||||
\DateTime::createFromFormat( "Y-m-d\TH:i:sO", $order_data->create_time )
|
||||
\DateTime::createFromFormat( 'Y-m-d\TH:i:sO', $order_data->create_time )
|
||||
: null;
|
||||
$update_time = ( isset( $order_data->update_time ) ) ?
|
||||
\DateTime::createFromFormat( "Y-m-d\TH:i:sO", $order_data->update_time )
|
||||
\DateTime::createFromFormat( 'Y-m-d\TH:i:sO', $order_data->update_time )
|
||||
: null;
|
||||
$payer = ( isset( $order_data->payer ) ) ?
|
||||
$this->payer_factory->from_paypal_response( $order_data->payer )
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*
|
||||
* @package WooCommerce\PayPalCommerce\ApiClient\Helper
|
||||
*/
|
||||
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace WooCommerce\PayPalCommerce\ApiClient\Helper;
|
||||
|
@ -23,7 +24,7 @@ class Cache {
|
|||
/**
|
||||
* Cache constructor.
|
||||
*
|
||||
* @param string $prefix
|
||||
* @param string $prefix The prefix for the value keys.
|
||||
*/
|
||||
public function __construct( string $prefix ) {
|
||||
$this->prefix = $prefix;
|
||||
|
|
|
@ -38,7 +38,7 @@ class OnboardingModule implements ModuleInterface {
|
|||
/**
|
||||
* Runs the module.
|
||||
*
|
||||
* @param $container The container.
|
||||
* @param ContainerInterface $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue