Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Fixed if() style.

  • Loading branch information...
commit d826f686442d15ba306a4975e112dd87abdab49f 1 parent 2a48dd5
@evictor evictor authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 SOAP/WSDL.php
View
8 SOAP/WSDL.php
@@ -514,14 +514,14 @@ function _addArg(&$args, &$argarray, $argname, $nillable = false, &$nillableArgs
$args .= ', ';
}
$args .= '$' . $argname;
- if($nillable) {
+ if ($nillable) {
$args .= ' = null';
$nillableArgs[] = $argname;
}
if (!$this->_validateString($argname)) {
return;
}
- if(!$nillable) {
+ if (!$nillable) {
if ($argarray) {
$argarray .= ', ';
}
@@ -705,7 +705,7 @@ function generateProxyCode($port = '', $classname = '')
if (isset($el['elements'])) {
foreach ($el['elements'] as $elname => $elattrs) {
$elname = $this->_sanitize($elname);
- if((isset($elattrs['nillable']) && $elattrs['nillable'])
+ if ((isset($elattrs['nillable']) && $elattrs['nillable'])
|| (isset($elattrs['minOccurs']) && $elattrs['minOccurs'] == 0)) {
// If you encounter one nillable, all subsequent
// arguments must default to null
@@ -722,7 +722,7 @@ function generateProxyCode($port = '', $classname = '')
if ($el['complex'] && $argarray) {
$wrapname = '{' . $this->namespaces[$_argtype['namespace']].'}' . $el['name'];
$comments .= " \$v = array($argarray);\n";
- if($usingNillables && !empty($nillableArgs)) {
+ if ($usingNillables && !empty($nillableArgs)) {
foreach($nillableArgs as $nillableArg) {
$comments .= " isset(\$$nillableArg) && \$v['$nillableArg'] = \$$nillableArg;\n";
}
Please sign in to comment.
Something went wrong with that request. Please try again.