Skip to content

Commit

Permalink
Optim : Ternary expression can be replaced with short version
Browse files Browse the repository at this point in the history
  • Loading branch information
s-renier-taonix-fr authored and f3l1x committed Feb 13, 2023
1 parent 5aff87a commit fa6e8dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1646,17 +1646,17 @@ function schemaEndElement($parser, $name)
}
// move on...
if ($name == 'complexType') {
$this->xdebug('done processing complexType ' . ($this->currentComplexType ? $this->currentComplexType : '(unknown)'));
$this->xdebug('done processing complexType ' . ($this->currentComplexType ?: '(unknown)'));
$this->xdebug($this->varDump($this->complexTypes[$this->currentComplexType]));
$this->currentComplexType = array_pop($this->complexTypeStack);
//$this->currentElement = false;
}
if ($name == 'element') {
$this->xdebug('done processing element ' . ($this->currentElement ? $this->currentElement : '(unknown)'));
$this->xdebug('done processing element ' . ($this->currentElement ?: '(unknown)'));
$this->currentElement = array_pop($this->elementStack);
}
if ($name == 'simpleType') {
$this->xdebug('done processing simpleType ' . ($this->currentSimpleType ? $this->currentSimpleType : '(unknown)'));
$this->xdebug('done processing simpleType ' . ($this->currentSimpleType ?: '(unknown)'));
$this->xdebug($this->varDump($this->simpleTypes[$this->currentSimpleType]));
$this->currentSimpleType = array_pop($this->simpleTypeStack);
}
Expand Down

0 comments on commit fa6e8dc

Please sign in to comment.