"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.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).

DateTimeZoneToStringTransformer.php  (phplist-3.4.5.tgz):DateTimeZoneToStringTransformer.php  (phplist-3.4.6.tgz)
skipping to change at line 37 skipping to change at line 37
{ {
$this->multiple = $multiple; $this->multiple = $multiple;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function transform($dateTimeZone) public function transform($dateTimeZone)
{ {
if (null === $dateTimeZone) { if (null === $dateTimeZone) {
return; return null;
} }
if ($this->multiple) { if ($this->multiple) {
if (!\is_array($dateTimeZone)) { if (!\is_array($dateTimeZone)) {
throw new TransformationFailedException('Expected an array of \D ateTimeZone objects.'); throw new TransformationFailedException('Expected an array of \D ateTimeZone objects.');
} }
return array_map([new self(), 'transform'], $dateTimeZone); return array_map([new self(), 'transform'], $dateTimeZone);
} }
skipping to change at line 61 skipping to change at line 61
return $dateTimeZone->getName(); return $dateTimeZone->getName();
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function reverseTransform($value) public function reverseTransform($value)
{ {
if (null === $value) { if (null === $value) {
return; return null;
} }
if ($this->multiple) { if ($this->multiple) {
if (!\is_array($value)) { if (!\is_array($value)) {
throw new TransformationFailedException('Expected an array of ti mezone identifier strings.'); throw new TransformationFailedException('Expected an array of ti mezone identifier strings.');
} }
return array_map([new self(), 'reverseTransform'], $value); return array_map([new self(), 'reverseTransform'], $value);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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