1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

feature/online-consultant: code styling for psr2 - attempt two

This commit is contained in:
Sergey Chazov 2020-08-04 10:45:08 +03:00
parent 70f55e8701
commit 48f28c7400

View file

@ -573,8 +573,7 @@ abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
public function validate_online_assistant_field($key, $value)
{
$onlineAssistant = $_POST['woocommerce_integration-retailcrm_online_assistant'];
if (!empty($onlineAssistant) && is_string($onlineAssistant)){
if (!empty($onlineAssistant) && is_string($onlineAssistant)) {
return wp_unslash($onlineAssistant);
}
return '';