Fix phpcs

This commit is contained in:
Emili Castells Guasch 2024-05-27 13:04:14 +02:00
parent cb190796ed
commit 90397b5dbd
2 changed files with 3 additions and 3 deletions

View file

@ -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' )

View file

@ -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 ) {