"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Dumper/XmlReferenceDumper.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

XmlReferenceDumper.php  (phplist-3.4.5.tgz):XmlReferenceDumper.php  (phplist-3.4.6.tgz)
skipping to change at line 45 skipping to change at line 45
{ {
$this->reference = ''; $this->reference = '';
$this->writeNode($node, 0, true, $namespace); $this->writeNode($node, 0, true, $namespace);
$ref = $this->reference; $ref = $this->reference;
$this->reference = null; $this->reference = null;
return $ref; return $ref;
} }
/** /**
* @param NodeInterface $node * @param int $depth
* @param int $depth * @param bool $root If the node is the root node
* @param bool $root If the node is the root node * @param string $namespace The namespace of the node
* @param string $namespace The namespace of the node
*/ */
private function writeNode(NodeInterface $node, $depth = 0, $root = false, $ namespace = null) private function writeNode(NodeInterface $node, $depth = 0, $root = false, $ namespace = null)
{ {
$rootName = ($root ? 'config' : $node->getName()); $rootName = ($root ? 'config' : $node->getName());
$rootNamespace = ($namespace ?: ($root ? 'http://example.org/schema/dic/ '.$node->getName() : null)); $rootNamespace = ($namespace ?: ($root ? 'http://example.org/schema/dic/ '.$node->getName() : null));
// xml remapping // xml remapping
if ($node->getParent()) { if ($node->getParent()) {
$remapping = array_filter($node->getParent()->getXmlRemappings(), fu nction ($mapping) use ($rootName) { $remapping = array_filter($node->getParent()->getXmlRemappings(), fu nction ($mapping) use ($rootName) {
return $rootName === $mapping[1]; return $rootName === $mapping[1];
skipping to change at line 310 skipping to change at line 309
return 'null'; return 'null';
} }
if (empty($value)) { if (empty($value)) {
return ''; return '';
} }
if (\is_array($value)) { if (\is_array($value)) {
return implode(',', $value); return implode(',', $value);
} }
return '';
} }
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)