Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 14, 2025
1 parent 38c5253 commit 9a0f896
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/ExpressionParser/Infix/FilterExpressionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Twig\ExpressionParser\ExpressionParserDescriptionInterface;
use Twig\ExpressionParser\InfixAssociativity;
use Twig\ExpressionParser\InfixExpressionParserInterface;
use Twig\ExpressionParser\PrecedenceChange;
use Twig\Node\EmptyNode;
use Twig\Node\Expression\AbstractExpression;
use Twig\Parser;
Expand Down
1 change: 0 additions & 1 deletion src/ExpressionParser/Prefix/LiteralExpressionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public function parse(Parser $parser, Token $token): AbstractExpression
default => throw new SyntaxError(\sprintf('Unexpected token "%s" of value "%s".', $token->toEnglish(), $token->getValue()), $token->getLine(), $stream->getSourceContext()),
};

// no break
case $token->test(Token::OPERATOR_TYPE):
if ('[' === $token->getValue()) {
return $this->parseSequenceExpression($parser);
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
use Twig\Node\Expression\Unary\NegUnary;
use Twig\Node\Expression\Unary\NotUnary;
use Twig\Node\Expression\Unary\PosUnary;
use Twig\Node\Expression\Variable\ContextVariable;
use Twig\Node\Expression\Unary\SpreadUnary;
use Twig\Node\Expression\Variable\ContextVariable;
use Twig\Node\Node;
use Twig\Parser;
use Twig\Sandbox\SecurityNotAllowedMethodError;
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/EscaperExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class EscaperExtension extends AbstractExtension
* @see setDefaultStrategy()
*/
public function __construct(
private $defaultStrategy = 'html'
private $defaultStrategy = 'html',
) {
$this->setDefaultStrategy($defaultStrategy);
}
Expand Down
1 change: 0 additions & 1 deletion src/Extension/ExtensionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace Twig\Extension;

use Twig\ExpressionParser\ExpressionParserInterface;
use Twig\ExpressionParser\PrecedenceChange;
use Twig\NodeVisitor\NodeVisitorInterface;
use Twig\TokenParser\TokenParserInterface;
use Twig\TwigFilter;
Expand Down
6 changes: 0 additions & 6 deletions src/ExtensionSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@

use Twig\Error\RuntimeError;
use Twig\ExpressionParser\ExpressionParsers;
use Twig\ExpressionParser\Infix\BinaryOperatorExpressionParser;
use Twig\ExpressionParser\InfixAssociativity;
use Twig\ExpressionParser\InfixExpressionParserInterface;
use Twig\ExpressionParser\PrecedenceChange;
use Twig\ExpressionParser\Prefix\UnaryOperatorExpressionParser;
use Twig\Extension\ExtensionInterface;
use Twig\Extension\GlobalsInterface;
use Twig\Extension\LastModifiedExtensionInterface;
use Twig\Extension\StagingExtension;
use Twig\Node\Expression\AbstractExpression;
use Twig\NodeVisitor\NodeVisitorInterface;
use Twig\TokenParser\TokenParserInterface;

Expand Down
2 changes: 1 addition & 1 deletion src/Node/ForElseNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public function compile(Compiler $compiler): void
->subcompile($this->getNode('body'))
->outdent()
->write("}\n")
;
;
}
}
3 changes: 0 additions & 3 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ public function getLine(): int
return $this->lineno;
}

/**
* @return mixed
*/
public function getValue()
{
return $this->value;
Expand Down

0 comments on commit 9a0f896

Please sign in to comment.