"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/View/Helper/TextHelper.php" between
cakephp-3.8.2.tar.gz and cakephp-3.8.3.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

TextHelper.php  (cakephp-3.8.2):TextHelper.php  (cakephp-3.8.3)
skipping to change at line 392 skipping to change at line 392
* @link https://book.cakephp.org/3.0/en/views/helpers/text.html#extracting- an-excerpt * @link https://book.cakephp.org/3.0/en/views/helpers/text.html#extracting- an-excerpt
*/ */
public function excerpt($text, $phrase, $radius = 100, $ending = '...') public function excerpt($text, $phrase, $radius = 100, $ending = '...')
{ {
return $this->_engine->excerpt($text, $phrase, $radius, $ending); return $this->_engine->excerpt($text, $phrase, $radius, $ending);
} }
/** /**
* Creates a comma separated list where the last two items are joined with ' and', forming natural language. * Creates a comma separated list where the last two items are joined with ' and', forming natural language.
* *
* @param array $list The list to be joined. * @param string[] $list The list to be joined.
* @param string|null $and The word used to join the last and second last it ems together with. Defaults to 'and'. * @param string|null $and The word used to join the last and second last it ems together with. Defaults to 'and'.
* @param string $separator The separator used to join all the other items t ogether. Defaults to ', '. * @param string $separator The separator used to join all the other items t ogether. Defaults to ', '.
* @return string The glued together string. * @return string The glued together string.
* @see \Cake\Utility\Text::toList() * @see \Cake\Utility\Text::toList()
* @link https://book.cakephp.org/3.0/en/views/helpers/text.html#converting- an-array-to-sentence-form * @link https://book.cakephp.org/3.0/en/views/helpers/text.html#converting- an-array-to-sentence-form
*/ */
public function toList($list, $and = null, $separator = ', ') public function toList($list, $and = null, $separator = ', ')
{ {
return $this->_engine->toList($list, $and, $separator); return $this->_engine->toList($list, $and, $separator);
} }
 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)