@@ -28,8 +28,6 @@ public function getFunctions(): array
28
28
'echo_endfor ' => new TwigFunction ('echo_endfor ' , $ this ->getEchoEndFor (...), $ options ),
29
29
'echo_raw ' => new TwigFunction ('echo_raw ' , $ this ->getEchoRaw (...), $ options ),
30
30
'echo_endraw ' => new TwigFunction ('echo_endraw ' , $ this ->getEchoEndRaw (...), $ options ),
31
- 'echo_spaceless ' => new TwigFunction ('echo_spaceless ' , $ this ->getEchoSpaceless (...), $ options ),
32
- 'echo_endspaceless ' => new TwigFunction ('echo_endspaceless ' , $ this ->getEchoEndSpaceless (...), $ options ),
33
31
'echo_extends ' => new TwigFunction ('echo_extends ' , $ this ->getEchoExtends (...), $ options ),
34
32
'echo_if ' => new TwigFunction ('echo_if ' , $ this ->getEchoIf (...), $ options ),
35
33
'echo_else ' => new TwigFunction ('echo_else ' , $ this ->getEchoElse (...), $ options ),
@@ -188,7 +186,7 @@ public function getEchoExtends(string $name): string
188
186
* {{ echo_for('item', 'myListObject', 'key') }}
189
187
* => {% for key,item in myListObject %}
190
188
*/
191
- public function getEchoFor (string $ object , string $ in , string $ key = null ): string
189
+ public function getEchoFor (string $ object , string $ in , ? string $ key = null ): string
192
190
{
193
191
return strtr (
194
192
'{% for %%key%%%%object%% in %%in%% %} ' ,
@@ -223,22 +221,6 @@ public function getEchoEndRaw(): string
223
221
return '{% endraw %} ' ;
224
222
}
225
223
226
- /**
227
- * Print "spaceless" tag
228
- */
229
- public function getEchoSpaceless (): string
230
- {
231
- return '{% apply spaceless %} ' ;
232
- }
233
-
234
- /**
235
- * Print "endspaceless" tag
236
- */
237
- public function getEchoEndSpaceless (): string
238
- {
239
- return '{% endapply %} ' ;
240
- }
241
-
242
224
/**
243
225
* Converts an array to a twig array expression (string).
244
226
* Only in case a value contains '{{' and '}}' the value won't be
0 commit comments