Skip to content

Commit

Permalink
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Twig/Extension/MediaExtension.php
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ public function getTokenParsers()
/**
* {@inheritdoc}
*/
public function initRuntime(\Twig_Environment $environment)
public function initRuntime(Environment $environment)
{
$this->environment = $environment;
}
3 changes: 2 additions & 1 deletion src/Twig/Node/MediaNode.php
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@

namespace Sonata\MediaBundle\Twig\Node;

use Twig\Compiler;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Node;

@@ -41,7 +42,7 @@ public function __construct($extensionName, AbstractExpression $media, AbstractE
/**
* {@inheritdoc}
*/
public function compile(\Twig_Compiler $compiler)
public function compile(Compiler $compiler)
{
$compiler
->addDebugInfo($this)
3 changes: 2 additions & 1 deletion src/Twig/Node/PathNode.php
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@

namespace Sonata\MediaBundle\Twig\Node;

use Twig\Compiler;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Node;

@@ -41,7 +42,7 @@ public function __construct($extensionName, AbstractExpression $media, AbstractE
/**
* {@inheritdoc}
*/
public function compile(\Twig_Compiler $compiler)
public function compile(Compiler $compiler)
{
$compiler
->addDebugInfo($this)
3 changes: 2 additions & 1 deletion src/Twig/Node/ThumbnailNode.php
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@

namespace Sonata\MediaBundle\Twig\Node;

use Twig\Compiler;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Node;

@@ -41,7 +42,7 @@ public function __construct($extensionName, AbstractExpression $media, AbstractE
/**
* {@inheritdoc}
*/
public function compile(\Twig_Compiler $compiler)
public function compile(Compiler $compiler)
{
$compiler
->addDebugInfo($this)
2 changes: 1 addition & 1 deletion src/Twig/TokenParser/MediaTokenParser.php
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ public function __construct($extensionName)
/**
* {@inheritdoc}
*/
public function parse(\Twig_Token $token)
public function parse(Token $token)
{
$media = $this->parser->getExpressionParser()->parseExpression();

2 changes: 1 addition & 1 deletion src/Twig/TokenParser/PathTokenParser.php
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ public function __construct($extensionName)
/**
* {@inheritdoc}
*/
public function parse(\Twig_Token $token)
public function parse(Token $token)
{
$media = $this->parser->getExpressionParser()->parseExpression();

2 changes: 1 addition & 1 deletion src/Twig/TokenParser/ThumbnailTokenParser.php
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ public function __construct($extensionName)
/**
* {@inheritdoc}
*/
public function parse(\Twig_Token $token)
public function parse(Token $token)
{
$media = $this->parser->getExpressionParser()->parseExpression();

0 comments on commit 8ba398a

Please sign in to comment.