1313
1414use Symfony \Component \Config \FileLocatorInterface ;
1515use Symfony \Component \Templating \TemplateNameParserInterface ;
16- use Twig_NodeInterface ;
16+ use Twig_Node ;
1717use Twig_Token ;
1818
19- class InlineCssParser extends \Twig_TokenParser
19+ class InlineCssParser extends \Twig_TokenParser
2020{
2121 /**
2222 * @var TemplateNameParserInterface
@@ -57,18 +57,18 @@ public function __construct(FileLocatorInterface $locator, TemplateNameParserInt
5757 *
5858 * @param Twig_Token $token A Twig_Token instance
5959 *
60- * @return Twig_NodeInterface A Twig_NodeInterface instance
60+ * @return Twig_Node A Twig_Node instance
6161 */
6262 public function parse (Twig_Token $ token )
6363 {
6464 $ lineNo = $ token ->getLine ();
65- $ stream = $ this ->parser ->getStream ();
65+ $ stream = $ this ->parser ->getStream ();
6666 $ path = $ stream ->expect (Twig_Token::STRING_TYPE )->getValue ();
6767 $ stream ->expect (Twig_Token::BLOCK_END_TYPE );
6868 $ body = $ this ->parser ->subparse (array ($ this , 'decideEnd ' ), true );
6969 $ stream ->expect (Twig_Token::BLOCK_END_TYPE );
7070
71- return new InlineCssNode ($ body , $ this ->resolvePath ($ path ), $ lineNo , $ this ->debug );
71+ return new InlineCssNode ($ body , $ this ->resolvePath ($ path ), $ lineNo , $ this ->debug );
7272 }
7373
7474 /**
@@ -80,7 +80,7 @@ public function getTag()
8080 {
8181 return 'inlinecss ' ;
8282 }
83-
83+
8484 public function decideEnd (Twig_Token $ token )
8585 {
8686 return $ token ->test ('endinlinecss ' );
0 commit comments