"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/twig/twig/src/TokenParser/SpacelessTokenParser.php" between
phplist-3.4.9.tgz and phplist-3.5.0.tgz

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

SpacelessTokenParser.php  (phplist-3.4.9.tgz):SpacelessTokenParser.php  (phplist-3.5.0.tgz)
skipping to change at line 27 skipping to change at line 27
/** /**
* Remove whitespaces between HTML tags. * Remove whitespaces between HTML tags.
* *
* {% spaceless %} * {% spaceless %}
* <div> * <div>
* <strong>foo</strong> * <strong>foo</strong>
* </div> * </div>
* {% endspaceless %} * {% endspaceless %}
* {# output will be <div><strong>foo</strong></div> #} * {# output will be <div><strong>foo</strong></div> #}
* *
* @deprecated since Twig 2.7, to be removed in 3.0 (use the spaceless filter in stead) * @deprecated since Twig 2.7, to be removed in 3.0 (use the "spaceless" filter with the "apply" tag instead)
*/ */
final class SpacelessTokenParser extends AbstractTokenParser final class SpacelessTokenParser extends AbstractTokenParser
{ {
public function parse(Token $token) public function parse(Token $token)
{ {
$stream = $this->parser->getStream(); $stream = $this->parser->getStream();
$lineno = $token->getLine(); $lineno = $token->getLine();
@trigger_error(sprintf('The spaceless tag in "%s" at line %d is deprecat ed since Twig 2.7, use the spaceless filter instead.', $stream->getSourceContext ()->getName(), $lineno), E_USER_DEPRECATED); @trigger_error(sprintf('The spaceless tag in "%s" at line %d is deprecat ed since Twig 2.7, use the "spaceless" filter with the "apply" tag instead.', $s tream->getSourceContext()->getName(), $lineno), E_USER_DEPRECATED);
$stream->expect(/* Token::BLOCK_END_TYPE */ 3); $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
$body = $this->parser->subparse([$this, 'decideSpacelessEnd'], true); $body = $this->parser->subparse([$this, 'decideSpacelessEnd'], true);
$stream->expect(/* Token::BLOCK_END_TYPE */ 3); $stream->expect(/* Token::BLOCK_END_TYPE */ 3);
return new SpacelessNode($body, $lineno, $this->getTag()); return new SpacelessNode($body, $lineno, $this->getTag());
} }
public function decideSpacelessEnd(Token $token) public function decideSpacelessEnd(Token $token)
{ {
 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)