mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Fix phpcs
This commit is contained in:
parent
cb190796ed
commit
90397b5dbd
2 changed files with 3 additions and 3 deletions
|
@ -225,7 +225,7 @@ return array(
|
|||
|
||||
return '<div class="ppcp-notice ppcp-notice-warning"><p>' . $notice_content . '</p></div>';
|
||||
},
|
||||
'axo.endpoint.frontend-logger' => static function (ContainerInterface $container): FrontendLoggerEndpoint {
|
||||
'axo.endpoint.frontend-logger' => static function ( ContainerInterface $container ): FrontendLoggerEndpoint {
|
||||
return new FrontendLoggerEndpoint(
|
||||
$container->get( 'button.request-data' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' )
|
||||
|
|
|
@ -38,7 +38,7 @@ class FrontendLoggerEndpoint implements EndpointInterface {
|
|||
/**
|
||||
* FrontendLoggerEndpoint constructor.
|
||||
*
|
||||
* @param RequestData $request_data The request data helper.
|
||||
* @param RequestData $request_data The request data helper.
|
||||
* @param LoggerInterface $logger The logger.
|
||||
*/
|
||||
public function __construct( RequestData $request_data, LoggerInterface $logger ) {
|
||||
|
@ -62,7 +62,7 @@ class FrontendLoggerEndpoint implements EndpointInterface {
|
|||
* @throws Exception On Error.
|
||||
*/
|
||||
public function handle_request(): bool {
|
||||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
$level = $data['log']['level'] ?? 'info';
|
||||
|
||||
switch ( $level ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue