if (is_string($this->api)) {
$api = json_decode($this->api, true);
}
- if(!isset($api) || null===$api){
+ if (!isset($api) || null === $api) {
return false;
}
$seo = $this->getTranslations('seo');
stop_measure("Webflow refresh data from api");
}
- public function initWebflowApiClient(){
+ public function initWebflowApiClient()
+ {
Webflow::setToken($this->webflow_api_token);
Webflow::setClientId(env('WEBFLOW_' . $this->webflow_account . '_CLIENT_ID'), env('WEBFLOW_' . $this->webflow_account . '_CLIENT_SECRET'));
}
$html = preg_replace('/\s+lang="[a-zA-Z\-_]{2,6}"/', ' lang="' . $locale . '"', $html);
+ $html = preg_replace('/integrity=".*"/U', '', $html);
// Texts