Skip to content
Snippets Groups Projects
Unverified Commit a264a9d0 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Coding style

parent 19e96997
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment