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: ExtensionInterface.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\Environment;
[12] Fix | Delete
use WPML\Core\Twig\NodeVisitor\NodeVisitorInterface;
[13] Fix | Delete
use WPML\Core\Twig\TokenParser\TokenParserInterface;
[14] Fix | Delete
use WPML\Core\Twig\TwigFilter;
[15] Fix | Delete
use WPML\Core\Twig\TwigFunction;
[16] Fix | Delete
use WPML\Core\Twig\TwigTest;
[17] Fix | Delete
/**
[18] Fix | Delete
* Interface implemented by extension classes.
[19] Fix | Delete
*
[20] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[21] Fix | Delete
*/
[22] Fix | Delete
interface ExtensionInterface
[23] Fix | Delete
{
[24] Fix | Delete
/**
[25] Fix | Delete
* Initializes the runtime environment.
[26] Fix | Delete
*
[27] Fix | Delete
* This is where you can load some file that contains filter functions for instance.
[28] Fix | Delete
*
[29] Fix | Delete
* @deprecated since 1.23 (to be removed in 2.0), implement \Twig_Extension_InitRuntimeInterface instead
[30] Fix | Delete
*/
[31] Fix | Delete
public function initRuntime(\WPML\Core\Twig\Environment $environment);
[32] Fix | Delete
/**
[33] Fix | Delete
* Returns the token parser instances to add to the existing list.
[34] Fix | Delete
*
[35] Fix | Delete
* @return TokenParserInterface[]
[36] Fix | Delete
*/
[37] Fix | Delete
public function getTokenParsers();
[38] Fix | Delete
/**
[39] Fix | Delete
* Returns the node visitor instances to add to the existing list.
[40] Fix | Delete
*
[41] Fix | Delete
* @return NodeVisitorInterface[]
[42] Fix | Delete
*/
[43] Fix | Delete
public function getNodeVisitors();
[44] Fix | Delete
/**
[45] Fix | Delete
* Returns a list of filters to add to the existing list.
[46] Fix | Delete
*
[47] Fix | Delete
* @return TwigFilter[]
[48] Fix | Delete
*/
[49] Fix | Delete
public function getFilters();
[50] Fix | Delete
/**
[51] Fix | Delete
* Returns a list of tests to add to the existing list.
[52] Fix | Delete
*
[53] Fix | Delete
* @return TwigTest[]
[54] Fix | Delete
*/
[55] Fix | Delete
public function getTests();
[56] Fix | Delete
/**
[57] Fix | Delete
* Returns a list of functions to add to the existing list.
[58] Fix | Delete
*
[59] Fix | Delete
* @return TwigFunction[]
[60] Fix | Delete
*/
[61] Fix | Delete
public function getFunctions();
[62] Fix | Delete
/**
[63] Fix | Delete
* Returns a list of operators to add to the existing list.
[64] Fix | Delete
*
[65] Fix | Delete
* @return array<array> First array of unary operators, second array of binary operators
[66] Fix | Delete
*/
[67] Fix | Delete
public function getOperators();
[68] Fix | Delete
/**
[69] Fix | Delete
* Returns a list of global variables to add to the existing list.
[70] Fix | Delete
*
[71] Fix | Delete
* @return array An array of global variables
[72] Fix | Delete
*
[73] Fix | Delete
* @deprecated since 1.23 (to be removed in 2.0), implement \Twig_Extension_GlobalsInterface instead
[74] Fix | Delete
*/
[75] Fix | Delete
public function getGlobals();
[76] Fix | Delete
/**
[77] Fix | Delete
* Returns the name of the extension.
[78] Fix | Delete
*
[79] Fix | Delete
* @return string The extension name
[80] Fix | Delete
*
[81] Fix | Delete
* @deprecated since 1.26 (to be removed in 2.0), not used anymore internally
[82] Fix | Delete
*/
[83] Fix | Delete
public function getName();
[84] Fix | Delete
}
[85] Fix | Delete
\class_alias('WPML\\Core\\Twig\\Extension\\ExtensionInterface', 'WPML\\Core\\Twig_ExtensionInterface');
[86] Fix | Delete
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
[87] Fix | Delete
\class_exists('WPML\\Core\\Twig\\Environment');
[88] Fix | Delete
[89] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function