@@ -56,18 +56,18 @@ protected function doEnterNode(Node $node, Environment $env): Node
5656 }
5757
5858 if (
59- $ node instanceof FilterExpression &&
60- 'trans ' === $ node ->getNode ('filter ' )->getAttribute ('value ' ) &&
61- $ node ->getNode ('node ' ) instanceof ConstantExpression
59+ $ node instanceof FilterExpression
60+ && 'trans ' === $ node ->getNode ('filter ' )->getAttribute ('value ' )
61+ && $ node ->getNode ('node ' ) instanceof ConstantExpression
6262 ) {
6363 // extract constant nodes with a trans filter
6464 $ this ->messages [] = [
6565 $ node ->getNode ('node ' )->getAttribute ('value ' ),
6666 $ this ->getReadDomainFromArguments ($ node ->getNode ('arguments ' ), 1 ),
6767 ];
6868 } elseif (
69- $ node instanceof FunctionExpression &&
70- 't ' === $ node ->getAttribute ('name ' )
69+ $ node instanceof FunctionExpression
70+ && 't ' === $ node ->getAttribute ('name ' )
7171 ) {
7272 $ nodeArguments = $ node ->getNode ('arguments ' );
7373
@@ -84,10 +84,10 @@ protected function doEnterNode(Node $node, Environment $env): Node
8484 $ node ->hasNode ('domain ' ) ? $ this ->getReadDomainFromNode ($ node ->getNode ('domain ' )) : null ,
8585 ];
8686 } elseif (
87- $ node instanceof FilterExpression &&
88- 'trans ' === $ node ->getNode ('filter ' )->getAttribute ('value ' ) &&
89- $ node ->getNode ('node ' ) instanceof ConcatBinary &&
90- $ message = $ this ->getConcatValueFromNode ($ node ->getNode ('node ' ), null )
87+ $ node instanceof FilterExpression
88+ && 'trans ' === $ node ->getNode ('filter ' )->getAttribute ('value ' )
89+ && $ node ->getNode ('node ' ) instanceof ConcatBinary
90+ && $ message = $ this ->getConcatValueFromNode ($ node ->getNode ('node ' ), null )
9191 ) {
9292 $ this ->messages [] = [
9393 $ message ,
0 commit comments