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/Extensio...
File: ProfilerExtension.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\Extension;
[10] Fix | Delete
[11] Fix | Delete
use WPML\Core\Twig\Profiler\NodeVisitor\ProfilerNodeVisitor;
[12] Fix | Delete
use WPML\Core\Twig\Profiler\Profile;
[13] Fix | Delete
class ProfilerExtension extends \WPML\Core\Twig\Extension\AbstractExtension
[14] Fix | Delete
{
[15] Fix | Delete
private $actives = [];
[16] Fix | Delete
public function __construct(\WPML\Core\Twig\Profiler\Profile $profile)
[17] Fix | Delete
{
[18] Fix | Delete
$this->actives[] = $profile;
[19] Fix | Delete
}
[20] Fix | Delete
public function enter(\WPML\Core\Twig\Profiler\Profile $profile)
[21] Fix | Delete
{
[22] Fix | Delete
$this->actives[0]->addProfile($profile);
[23] Fix | Delete
\array_unshift($this->actives, $profile);
[24] Fix | Delete
}
[25] Fix | Delete
public function leave(\WPML\Core\Twig\Profiler\Profile $profile)
[26] Fix | Delete
{
[27] Fix | Delete
$profile->leave();
[28] Fix | Delete
\array_shift($this->actives);
[29] Fix | Delete
if (1 === \count($this->actives)) {
[30] Fix | Delete
$this->actives[0]->leave();
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
public function getNodeVisitors()
[34] Fix | Delete
{
[35] Fix | Delete
return [new \WPML\Core\Twig\Profiler\NodeVisitor\ProfilerNodeVisitor(\get_class($this))];
[36] Fix | Delete
}
[37] Fix | Delete
public function getName()
[38] Fix | Delete
{
[39] Fix | Delete
return 'profiler';
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
\class_alias('WPML\\Core\\Twig\\Extension\\ProfilerExtension', 'WPML\\Core\\Twig_Extension_Profiler');
[43] Fix | Delete
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function