Commit 5ebb1c6f authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: phpcs

parent 817599a0
2 merge requests!52:sparkles: Releasing Fusiondirectory Integrator 1.2,!50Resolve "[Integrator] - Web Service call requires a definition of an HTTP_AGENT"
Pipeline #30900 passed with stages
in 45 seconds
Showing with 5 additions and 5 deletions
+5 -5
...@@ -34,8 +34,8 @@ class WebServiceCall ...@@ -34,8 +34,8 @@ class WebServiceCall
$this->ch = !empty($URL) ? curl_init($URL) : curl_init($this->URL); $this->ch = !empty($URL) ? curl_init($URL) : curl_init($this->URL);
// We require to set a proper http_agent // We require to set a proper http_agent
$os = PHP_OS; $os = PHP_OS;
$phpVersion = PHP_VERSION; $phpVersion = PHP_VERSION;
$customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib"; $customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib";
// Manage a trick to perform refresh on user DN // Manage a trick to perform refresh on user DN
...@@ -48,7 +48,7 @@ class WebServiceCall ...@@ -48,7 +48,7 @@ class WebServiceCall
if (!empty($method)) { if (!empty($method)) {
$this->method = $method; $this->method = $method;
// set the curl options based on the method required. // set the curl options based on the method required.
switch (strtolower($this->method)) { switch (strtolower($this->method)) {
case 'patch' : case 'patch' :
...@@ -113,8 +113,8 @@ class WebServiceCall ...@@ -113,8 +113,8 @@ class WebServiceCall
$ch = curl_init($this->URL); $ch = curl_init($this->URL);
// We require to set a proper http_agent // We require to set a proper http_agent
$os = PHP_OS; $os = PHP_OS;
$phpVersion = PHP_VERSION; $phpVersion = PHP_VERSION;
$customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib"; $customUserAgent = "FusionDirectory/Integrator ($os; PHP $phpVersion; https://www.fusiondirectory.org) WebserviceLib";
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment