@@ -56,18 +56,18 @@ protected function doEnterNode(Node $node, Environment $env): Node
56
56
}
57
57
58
58
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
62
62
) {
63
63
// extract constant nodes with a trans filter
64
64
$ this ->messages [] = [
65
65
$ node ->getNode ('node ' )->getAttribute ('value ' ),
66
66
$ this ->getReadDomainFromArguments ($ node ->getNode ('arguments ' ), 1 ),
67
67
];
68
68
} elseif (
69
- $ node instanceof FunctionExpression &&
70
- 't ' === $ node ->getAttribute ('name ' )
69
+ $ node instanceof FunctionExpression
70
+ && 't ' === $ node ->getAttribute ('name ' )
71
71
) {
72
72
$ nodeArguments = $ node ->getNode ('arguments ' );
73
73
@@ -84,10 +84,10 @@ protected function doEnterNode(Node $node, Environment $env): Node
84
84
$ node ->hasNode ('domain ' ) ? $ this ->getReadDomainFromNode ($ node ->getNode ('domain ' )) : null ,
85
85
];
86
86
} 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 )
91
91
) {
92
92
$ this ->messages [] = [
93
93
$ message ,
0 commit comments