Skip to content

Commit b61db2f

Browse files
minor #58472 CS: clean some whitespaces/indentation (keradus)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- CS: clean some whitespaces/indentation | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix CS | License | MIT Commits ------- d0f63b8 CS: clean some whitespaces/indentation
2 parents f18789f + d0f63b8 commit b61db2f

File tree

8 files changed

+201
-199
lines changed

8 files changed

+201
-199
lines changed

src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ public function enterNode(Node $node, Environment $env): Node
5656
$name = new AssignNameExpression(self::INTERNAL_VAR_NAME, $node->getTemplateLine());
5757
$this->scope->set('domain', new NameExpression(self::INTERNAL_VAR_NAME, $node->getTemplateLine()));
5858

59-
6059
if (class_exists(Nodes::class)) {
6160
return new SetNode(false, new Nodes([$name]), new Nodes([$node->getNode('expr')]), $node->getTemplateLine());
62-
}
61+
}
6362

6463
return new SetNode(false, new Node([$name]), new Node([$node->getNode('expr')]), $node->getTemplateLine());
6564
}

src/Symfony/Bridge/Twig/Tests/Node/SearchAndRenderBlockNodeTest.php

+33-33
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function testCompileWidgetWithVariables()
5757
if (class_exists(Nodes::class)) {
5858
$arguments = new Nodes([
5959
new NameExpression('form', 0),
60-
new ArrayExpression([
61-
new ConstantExpression('foo', 0),
62-
new ConstantExpression('bar', 0),
60+
new ArrayExpression([
61+
new ConstantExpression('foo', 0),
62+
new ConstantExpression('bar', 0),
6363
], 0),
6464
]);
6565
} else {
@@ -201,9 +201,9 @@ public function testCompileLabelWithAttributes()
201201
$arguments = new Nodes([
202202
new NameExpression('form', 0),
203203
new ConstantExpression(null, 0),
204-
new ArrayExpression([
205-
new ConstantExpression('foo', 0),
206-
new ConstantExpression('bar', 0),
204+
new ArrayExpression([
205+
new ConstantExpression('foo', 0),
206+
new ConstantExpression('bar', 0),
207207
], 0),
208208
]);
209209
} else {
@@ -239,11 +239,11 @@ public function testCompileLabelWithLabelAndAttributes()
239239
$arguments = new Nodes([
240240
new NameExpression('form', 0),
241241
new ConstantExpression('value in argument', 0),
242-
new ArrayExpression([
243-
new ConstantExpression('foo', 0),
244-
new ConstantExpression('bar', 0),
245-
new ConstantExpression('label', 0),
246-
new ConstantExpression('value in attributes', 0),
242+
new ArrayExpression([
243+
new ConstantExpression('foo', 0),
244+
new ConstantExpression('bar', 0),
245+
new ConstantExpression('label', 0),
246+
new ConstantExpression('value in attributes', 0),
247247
], 0),
248248
]);
249249
} else {
@@ -277,14 +277,14 @@ public function testCompileLabelWithLabelThatEvaluatesToNull()
277277
if (class_exists(Nodes::class)) {
278278
$arguments = new Nodes([
279279
new NameExpression('form', 0),
280-
new ConditionalExpression(
281-
// if
282-
new ConstantExpression(true, 0),
283-
// then
284-
new ConstantExpression(null, 0),
285-
// else
286-
new ConstantExpression(null, 0),
287-
0
280+
new ConditionalExpression(
281+
// if
282+
new ConstantExpression(true, 0),
283+
// then
284+
new ConstantExpression(null, 0),
285+
// else
286+
new ConstantExpression(null, 0),
287+
0
288288
),
289289
]);
290290
} else {
@@ -324,20 +324,20 @@ public function testCompileLabelWithLabelThatEvaluatesToNullAndAttributes()
324324
if (class_exists(Nodes::class)) {
325325
$arguments = new Nodes([
326326
new NameExpression('form', 0),
327-
new ConditionalExpression(
328-
// if
329-
new ConstantExpression(true, 0),
330-
// then
331-
new ConstantExpression(null, 0),
332-
// else
333-
new ConstantExpression(null, 0),
334-
0
335-
),
336-
new ArrayExpression([
337-
new ConstantExpression('foo', 0),
338-
new ConstantExpression('bar', 0),
339-
new ConstantExpression('label', 0),
340-
new ConstantExpression('value in attributes', 0),
327+
new ConditionalExpression(
328+
// if
329+
new ConstantExpression(true, 0),
330+
// then
331+
new ConstantExpression(null, 0),
332+
// else
333+
new ConstantExpression(null, 0),
334+
0
335+
),
336+
new ArrayExpression([
337+
new ConstantExpression('foo', 0),
338+
new ConstantExpression('bar', 0),
339+
new ConstantExpression('label', 0),
340+
new ConstantExpression('value in attributes', 0),
341341
], 0),
342342
]);
343343
} else {

0 commit comments

Comments
 (0)