"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.FluidAdaptor/Classes/ViewHelpers/Format/CropViewHelper.php" between
flow-development-collection-5.2.1.tar.gz and flow-development-collection-5.2.2.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

CropViewHelper.php  (flow-development-collection-5.2.1):CropViewHelper.php  (flow-development-collection-5.2.2)
skipping to change at line 90 skipping to change at line 90
/** /**
* @param array $arguments * @param array $arguments
* @param \Closure $renderChildrenClosure * @param \Closure $renderChildrenClosure
* @param RenderingContextInterface $renderingContext * @param RenderingContextInterface $renderingContext
* @return string * @return string
*/ */
public static function renderStatic(array $arguments, \Closure $renderChildr enClosure, RenderingContextInterface $renderingContext) public static function renderStatic(array $arguments, \Closure $renderChildr enClosure, RenderingContextInterface $renderingContext)
{ {
$value = $arguments['value']; $value = $arguments['value'];
if ($value === null) { if ($value === null) {
$value = $renderChildrenClosure(); $value = (string)$renderChildrenClosure();
} }
if (UnicodeUtilityFunctions::strlen($value) > $arguments['maxCharacters' ]) { if (UnicodeUtilityFunctions::strlen($value) > $arguments['maxCharacters' ]) {
return UnicodeUtilityFunctions::substr($value, 0, $arguments['maxCha racters']) . $arguments['append']; return UnicodeUtilityFunctions::substr($value, 0, $arguments['maxCha racters']) . $arguments['append'];
} }
return $value; return $value;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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