Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../lib/twig/src/Node
File: ForLoopNode.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of Twig.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
namespace WPML\Core\Twig\Node;
[10] Fix | Delete
[11] Fix | Delete
use WPML\Core\Twig\Compiler;
[12] Fix | Delete
/**
[13] Fix | Delete
* Internal node used by the for node.
[14] Fix | Delete
*
[15] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[16] Fix | Delete
*/
[17] Fix | Delete
class ForLoopNode extends \WPML\Core\Twig\Node\Node
[18] Fix | Delete
{
[19] Fix | Delete
public function __construct($lineno, $tag = null)
[20] Fix | Delete
{
[21] Fix | Delete
parent::__construct([], ['with_loop' => \false, 'ifexpr' => \false, 'else' => \false], $lineno, $tag);
[22] Fix | Delete
}
[23] Fix | Delete
public function compile(\WPML\Core\Twig\Compiler $compiler)
[24] Fix | Delete
{
[25] Fix | Delete
if ($this->getAttribute('else')) {
[26] Fix | Delete
$compiler->write("\$context['_iterated'] = true;\n");
[27] Fix | Delete
}
[28] Fix | Delete
if ($this->getAttribute('with_loop')) {
[29] Fix | Delete
$compiler->write("++\$context['loop']['index0'];\n")->write("++\$context['loop']['index'];\n")->write("\$context['loop']['first'] = false;\n");
[30] Fix | Delete
if (!$this->getAttribute('ifexpr')) {
[31] Fix | Delete
$compiler->write("if (isset(\$context['loop']['length'])) {\n")->indent()->write("--\$context['loop']['revindex0'];\n")->write("--\$context['loop']['revindex'];\n")->write("\$context['loop']['last'] = 0 === \$context['loop']['revindex0'];\n")->outdent()->write("}\n");
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
\class_alias('WPML\\Core\\Twig\\Node\\ForLoopNode', 'WPML\\Core\\Twig_Node_ForLoop');
[37] Fix | Delete
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function