1
1
<?php
2
2
3
3
/*
4
- * Copyright (c) 2021 Heimrich & Hannot GmbH
4
+ * Copyright (c) 2022 Heimrich & Hannot GmbH
5
5
*
6
6
* @license LGPL-3.0-or-later
7
7
*/
@@ -155,10 +155,7 @@ public function onParseWidget(string $buffer, Widget $widget): string
155
155
}
156
156
157
157
try {
158
- /** @noinspection PhpMethodParametersCountMismatchInspection */
159
- /** @noinspection PhpParamsInspection */
160
158
$ event = $ this ->eventDispatcher ->dispatch (
161
- BeforeParseTwigTemplateEvent::NAME ,
162
159
new BeforeParseTwigTemplateEvent ($ templateName , $ templateData , $ widget )
163
160
);
164
161
} catch (SkipTemplateException $ e ) {
@@ -194,11 +191,7 @@ public function render($contaoTemplate): string
194
191
$ twigTemplateData ['widget ' ] = $ contaoTemplate ;
195
192
}
196
193
197
- /** @var BeforeRenderTwigTemplateEvent $event */
198
- /** @noinspection PhpMethodParametersCountMismatchInspection */
199
- /** @noinspection PhpParamsInspection */
200
194
$ event = $ this ->eventDispatcher ->dispatch (
201
- BeforeRenderTwigTemplateEvent::NAME ,
202
195
new BeforeRenderTwigTemplateEvent ($ twigTemplateName , $ twigTemplateData , $ twigTemplatePath , $ contaoTemplate )
203
196
);
204
197
@@ -225,10 +218,7 @@ public function prepareContaoTemplate(Template $contaoTemplate): void
225
218
$ templateData = $ contaoTemplate ->getData ();
226
219
227
220
try {
228
- /** @noinspection PhpMethodParametersCountMismatchInspection */
229
- /** @noinspection PhpParamsInspection */
230
221
$ event = $ this ->eventDispatcher ->dispatch (
231
- BeforeParseTwigTemplateEvent::NAME ,
232
222
new BeforeParseTwigTemplateEvent ($ templateName , $ templateData , $ contaoTemplate )
233
223
);
234
224
} catch (SkipTemplateException $ e ) {
@@ -259,6 +249,7 @@ private function getTemplates(): array
259
249
if (!$ this ->templates ) {
260
250
$ this ->templates = $ this ->templateLocator ->getTemplates (false );
261
251
}
252
+
262
253
return $ this ->templates ;
263
254
}
264
255
}
0 commit comments