Skip to content

Commit 02d2b07

Browse files
committed
Reduced complexity for temp var assignment.
1 parent e174b11 commit 02d2b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ToolkitApi/ToolkitPCML.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ public function singlePcmlToParam(\SimpleXmlElement $dataElement)
353353
$passBy = 'val'; // rare. PCML calls it 'value'. XMLSERVICE calls it 'val'.
354354
}
355355

356+
$newtype = '';
357+
356358
// find new toolkit equivalent of PCML data type
357359
if (isset($this->_pcmlTypeMap[$type])) {
358360
// a simple type mapping
@@ -367,8 +369,6 @@ public function singlePcmlToParam(\SimpleXmlElement $dataElement)
367369
$newType = ''; // no match
368370
} //(length == 2, et al.)
369371

370-
} else {
371-
$newtype = '';
372372
}
373373

374374
$newInout = (isset($this->_pcmlInoutMap[$usage])) ? (string) $this->_pcmlInoutMap[$usage] : '';

0 commit comments

Comments
 (0)