Skip to content

Commit e597f8e

Browse files
keradusnicolas-grekas
authored andcommitted
chore: PHP CS Fixer - update heredoc handling
1 parent b808065 commit e597f8e

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

Tests/Command/DebugCommandTest.php

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ public static function getDebugTemplateNameTestData()
112112
----------- -------------------------------------%A
113113
114114
115-
TXT
116-
,
115+
TXT,
117116
'paths' => ['vendors/twig-bundle/Resources/views/' => 'Twig'],
118117
];
119118

@@ -141,8 +140,7 @@ public static function getDebugTemplateNameTestData()
141140
----------- -------------------------------------%A
142141
143142
144-
TXT
145-
,
143+
TXT,
146144
'paths' => $defaultPaths,
147145
];
148146

@@ -165,8 +163,7 @@ public static function getDebugTemplateNameTestData()
165163
----------- ------------%A
166164
167165
168-
TXT
169-
,
166+
TXT,
170167
'paths' => $defaultPaths,
171168
];
172169

@@ -195,8 +192,7 @@ public static function getDebugTemplateNameTestData()
195192
----------- --------------------------------------
196193
197194
198-
TXT
199-
,
195+
TXT,
200196
'paths' => $defaultPaths,
201197
];
202198

@@ -218,8 +214,7 @@ public static function getDebugTemplateNameTestData()
218214
%w@Twig%A
219215
220216
221-
TXT
222-
,
217+
TXT,
223218
'paths' => $defaultPaths,
224219
];
225220

@@ -247,8 +242,7 @@ public static function getDebugTemplateNameTestData()
247242
----------- --------------------------------------
248243
249244
250-
TXT
251-
,
245+
TXT,
252246
'paths' => $defaultPaths,
253247
];
254248
}

Tests/Extension/FormExtensionBootstrap3LayoutTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ public function testMoneyWidgetInIso()
7272
<div class="input-group">
7373
<span class="input-group-addon">&euro; </span>
7474
<input type="text" id="name" name="name" required="required" class="form-control" /> </div>
75-
HTML
76-
, trim($this->renderWidget($view)));
75+
HTML,
76+
trim($this->renderWidget($view))
77+
);
7778
}
7879

7980
protected function getTemplatePaths(): array

Tests/Extension/FormExtensionBootstrap4LayoutTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ public function testMoneyWidgetInIso()
7777
<div class="input-group "><div class="input-group-prepend">
7878
<span class="input-group-text">&euro; </span>
7979
</div><input type="text" id="name" name="name" required="required" class="form-control" /></div>
80-
HTML
81-
, trim($this->renderWidget($view)));
80+
HTML,
81+
trim($this->renderWidget($view))
82+
);
8283
}
8384

8485
protected function getTemplatePaths(): array

Tests/Extension/FormExtensionBootstrap5LayoutTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ public function testMoneyWidgetInIso()
7676

7777
self::assertSame(<<<'HTML'
7878
<div class="input-group "><span class="input-group-text">&euro; </span><input type="text" id="name" name="name" required="required" class="form-control" /></div>
79-
HTML
80-
, trim($this->renderWidget($view)));
79+
HTML,
80+
trim($this->renderWidget($view))
81+
);
8182
}
8283

8384
protected function getTemplatePaths(): array

Tests/Extension/HttpKernelExtensionTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ public function testGenerateFragmentUri()
7070
$loader = new ArrayLoader([
7171
'index' => \sprintf(<<<TWIG
7272
{{ fragment_uri(controller("%s::templateAction", {template: "foo.html.twig"})) }}
73-
TWIG
74-
, str_replace('\\', '\\\\', TemplateController::class)), ]);
73+
TWIG,
74+
str_replace('\\', '\\\\', TemplateController::class)
75+
),
76+
]);
7577
$twig = new Environment($loader, ['debug' => true, 'cache' => false]);
7678
$twig->addExtension(new HttpKernelExtension());
7779

0 commit comments

Comments
 (0)