From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../classes/Twig/I18n/TokenParserTrans.php | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Twig/I18n/TokenParserTrans.php (limited to 'srcs/phpmyadmin/libraries/classes/Twig/I18n/TokenParserTrans.php') diff --git a/srcs/phpmyadmin/libraries/classes/Twig/I18n/TokenParserTrans.php b/srcs/phpmyadmin/libraries/classes/Twig/I18n/TokenParserTrans.php deleted file mode 100644 index 25aade0..0000000 --- a/srcs/phpmyadmin/libraries/classes/Twig/I18n/TokenParserTrans.php +++ /dev/null @@ -1,85 +0,0 @@ -getLine(); - $stream = $this->parser->getStream(); - $count = null; - $plural = null; - $notes = null; - $context = null; - - if (! $stream->test(Token::BLOCK_END_TYPE)) { - $body = $this->parser->getExpressionParser()->parseExpression(); - } else { - $stream->expect(Token::BLOCK_END_TYPE); - $body = $this->parser->subparse([$this, 'decideForFork']); - $next = $stream->next()->getValue(); - - if ('plural' === $next) { - $count = $this->parser->getExpressionParser()->parseExpression(); - $stream->expect(Token::BLOCK_END_TYPE); - $plural = $this->parser->subparse([$this, 'decideForFork']); - - if ('notes' === $stream->next()->getValue()) { - $stream->expect(Token::BLOCK_END_TYPE); - $notes = $this->parser->subparse([$this, 'decideForEnd'], true); - } - } elseif ('context' === $next) { - $stream->expect(Token::BLOCK_END_TYPE); - $context = $this->parser->subparse([$this, 'decideForEnd'], true); - } elseif ('notes' === $next) { - $stream->expect(Token::BLOCK_END_TYPE); - $notes = $this->parser->subparse([$this, 'decideForEnd'], true); - } - } - - $stream->expect(Token::BLOCK_END_TYPE); - - $this->checkTransString($body, $lineno); - - return new NodeTrans($body, $plural, $count, $context, $notes, $lineno, $this->getTag()); - } - - /** - * Tests the current token for a type. - * - * @param Token $token Twig token to test - * - * @return bool - */ - public function decideForFork(Token $token) - { - return $token->test(['plural', 'context', 'notes', 'endtrans']); - } -} -- cgit