From c2d95ffaeaa289752b4c7b6664b6ca112a02e350 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 2 Nov 2023 19:08:58 +0100 Subject: Roundup of issues reported by PHPStorm Mostly redundant checks, logic errors, dead code, etc. --- .../locationinfo/exchange-includes/jamesiarmes/PhpEws/Autodiscover.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/exchange-includes') diff --git a/modules-available/locationinfo/exchange-includes/jamesiarmes/PhpEws/Autodiscover.php b/modules-available/locationinfo/exchange-includes/jamesiarmes/PhpEws/Autodiscover.php index 8198137d..8c60a4c8 100644 --- a/modules-available/locationinfo/exchange-includes/jamesiarmes/PhpEws/Autodiscover.php +++ b/modules-available/locationinfo/exchange-includes/jamesiarmes/PhpEws/Autodiscover.php @@ -891,6 +891,6 @@ class Autodiscover protected function tryViaUrl($url, $timeout = 6) { $result = $this->doNTLMPost($url, $timeout); - return ($result ? true : false); + return (bool)$result; } } -- cgit v1.2.3-55-g7522