Skip to content

Commit b370bd3

Browse files
committed
Apply operator_linebreak PHP-CS-Fixer rule
1 parent 443a47f commit b370bd3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Extension/RoutingExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function isUrlGenerationSafe(Node $argsNode): array
7979
$argsNode->hasNode(1) ? $argsNode->getNode(1) : null
8080
);
8181

82-
if (null === $paramsNode || $paramsNode instanceof ArrayExpression && \count($paramsNode) <= 2 &&
83-
(!$paramsNode->hasNode(1) || $paramsNode->getNode(1) instanceof ConstantExpression)
82+
if (null === $paramsNode || $paramsNode instanceof ArrayExpression && \count($paramsNode) <= 2
83+
&& (!$paramsNode->hasNode(1) || $paramsNode->getNode(1) instanceof ConstantExpression)
8484
) {
8585
return ['html'];
8686
}

NodeVisitor/TranslationNodeVisitor.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)