mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
fixed CS
This commit is contained in:
@@ -18,9 +18,6 @@ use Twig\TwigFilter;
|
||||
use Twig\TwigFunction;
|
||||
use Twig\TwigTest;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Environment');
|
||||
|
||||
/**
|
||||
* Interface implemented by extension classes.
|
||||
*
|
||||
@@ -99,3 +96,6 @@ interface ExtensionInterface
|
||||
}
|
||||
|
||||
class_alias('Twig\Extension\ExtensionInterface', 'Twig_ExtensionInterface');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Environment');
|
||||
|
||||
+3
-3
@@ -14,9 +14,6 @@ namespace Twig\Node;
|
||||
|
||||
use Twig\Compiler;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Compiler');
|
||||
|
||||
/**
|
||||
* Represents a node in the AST.
|
||||
*
|
||||
@@ -260,3 +257,6 @@ class Node implements \Twig_NodeInterface
|
||||
}
|
||||
|
||||
class_alias('Twig\Node\Node', 'Twig_Node');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Compiler');
|
||||
|
||||
@@ -13,9 +13,6 @@ namespace Twig\NodeVisitor;
|
||||
|
||||
use Twig\Environment;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Environment');
|
||||
|
||||
/**
|
||||
* Interface for node visitor classes.
|
||||
*
|
||||
@@ -48,3 +45,6 @@ interface NodeVisitorInterface
|
||||
}
|
||||
|
||||
class_alias('Twig\NodeVisitor\NodeVisitorInterface', 'Twig_NodeVisitorInterface');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Environment');
|
||||
|
||||
@@ -15,10 +15,6 @@ use Twig\Error\SyntaxError;
|
||||
use Twig\Parser;
|
||||
use Twig\Token;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Token');
|
||||
class_exists('Twig\Parser');
|
||||
|
||||
/**
|
||||
* Interface implemented by token parsers.
|
||||
*
|
||||
@@ -49,3 +45,7 @@ interface TokenParserInterface
|
||||
}
|
||||
|
||||
class_alias('Twig\TokenParser\TokenParserInterface', 'Twig_TokenParserInterface');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Token');
|
||||
class_exists('Twig\Parser');
|
||||
|
||||
+3
-3
@@ -13,9 +13,6 @@ namespace Twig;
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Node\Node');
|
||||
|
||||
/**
|
||||
* Represents a template filter.
|
||||
*
|
||||
@@ -126,3 +123,6 @@ class TwigFilter
|
||||
}
|
||||
|
||||
class_alias('Twig\TwigFilter', 'Twig_SimpleFilter');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Node\Node');
|
||||
|
||||
@@ -13,9 +13,6 @@ namespace Twig;
|
||||
|
||||
use Twig\Node\Node;
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Node\Node');
|
||||
|
||||
/**
|
||||
* Represents a template function.
|
||||
*
|
||||
@@ -116,3 +113,6 @@ class TwigFunction
|
||||
}
|
||||
|
||||
class_alias('Twig\TwigFunction', 'Twig_SimpleFunction');
|
||||
|
||||
// Ensure that the aliased name is loaded to keep BC for classes implementing the typehint with the old aliased name.
|
||||
class_exists('Twig\Node\Node');
|
||||
|
||||
Reference in New Issue
Block a user