From a264a9d08e64e7a6f240b633b3968b78cf0d8e70 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Fri, 5 Jan 2018 00:10:26 +0100 Subject: [PATCH] Coding style --- lib/SimpleSAML/XML/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/XML/Parser.php b/lib/SimpleSAML/XML/Parser.php index b43fe49a7..fb05d51bf 100644 --- a/lib/SimpleSAML/XML/Parser.php +++ b/lib/SimpleSAML/XML/Parser.php @@ -50,7 +50,7 @@ class Parser public function getValue($xpath, $required = false) { $result = $this->simplexml->xpath($xpath); - if (! $result or !is_array($result)) { + if (!($result || !is_array($result))) { if ($required) { throw new \Exception('Could not get value from XML document using the following XPath expression: ' . $xpath); } else { -- GitLab