Skip to content

Commit

Permalink
Optim : Argument matches the parameter's default value
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 f059204 commit eedc2a5
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 @@ -4972,7 +4972,7 @@ function parseWSDL($wsdl = '')
if ($this->authtype != '') {
$tr->setCredentials($this->username, $this->password, $this->authtype, array(), $this->certRequest);
}
$tr->setEncoding('gzip, deflate');
$tr->setEncoding();
$wsdl_string = $tr->send('', $this->timeout, $this->response_timeout);
//$this->debug("WSDL request\n" . $tr->outgoing_payload);
//$this->debug("WSDL response\n" . $tr->incoming_payload);
Expand Down Expand Up @@ -6824,7 +6824,7 @@ function __construct($xml, $encoding = 'UTF-8', $method = '', $decode_utf8 = tru
$chunkSize = 4096;
for($pointer = 0; $pointer < strlen($xml) && empty($parseErrors); $pointer += $chunkSize) {
$xmlString = substr($xml, $pointer, $chunkSize);
if(!xml_parse($this->parser, $xmlString, false)) {
if(!xml_parse($this->parser, $xmlString)) {
$parseErrors['lineNumber'] = xml_get_current_line_number($this->parser);
$parseErrors['errorString'] = xml_error_string(xml_get_error_code($this->parser));
}
Expand Down Expand Up @@ -7807,7 +7807,7 @@ function checkWSDL()
$this->wsdl->clearDebug();
$this->debug('got wsdl error: ' . $errstr);
$this->setError('wsdl error: ' . $errstr);
} elseif ($this->operations = $this->wsdl->getOperations($this->portName, 'soap')) {
} elseif ($this->operations = $this->wsdl->getOperations($this->portName)) {
$this->appendDebug($this->wsdl->getDebug());
$this->wsdl->clearDebug();
$this->bindingType = 'soap';
Expand Down

0 comments on commit eedc2a5

Please sign in to comment.