@@ -194,6 +194,8 @@ public function offsetUnset(mixed $name): void
194194 * Adds some helpers.
195195 *
196196 * @param HelperInterface[] $helpers An array of helper
197+ *
198+ * @return void
197199 */
198200 public function addHelpers (array $ helpers )
199201 {
@@ -206,13 +208,18 @@ public function addHelpers(array $helpers)
206208 * Sets the helpers.
207209 *
208210 * @param HelperInterface[] $helpers An array of helper
211+ *
212+ * @return void
209213 */
210214 public function setHelpers (array $ helpers )
211215 {
212216 $ this ->helpers = [];
213217 $ this ->addHelpers ($ helpers );
214218 }
215219
220+ /**
221+ * @return void
222+ */
216223 public function set (HelperInterface $ helper , string $ alias = null )
217224 {
218225 $ this ->helpers [$ helper ->getName ()] = $ helper ;
@@ -247,6 +254,8 @@ public function get(string $name): HelperInterface
247254
248255 /**
249256 * Decorates the current template with another one.
257+ *
258+ * @return void
250259 */
251260 public function extend (string $ template )
252261 {
@@ -277,6 +286,8 @@ public function escape(mixed $value, string $context = 'html'): mixed
277286
278287 /**
279288 * Sets the charset to use.
289+ *
290+ * @return void
280291 */
281292 public function setCharset (string $ charset )
282293 {
@@ -300,6 +311,8 @@ public function getCharset(): string
300311
301312 /**
302313 * Adds an escaper for the given context.
314+ *
315+ * @return void
303316 */
304317 public function setEscaper (string $ context , callable $ escaper )
305318 {
@@ -321,6 +334,9 @@ public function getEscaper(string $context): callable
321334 return $ this ->escapers [$ context ];
322335 }
323336
337+ /**
338+ * @return void
339+ */
324340 public function addGlobal (string $ name , mixed $ value )
325341 {
326342 $ this ->globals [$ name ] = $ value ;
@@ -350,6 +366,8 @@ public function getGlobals(): array
350366 *
351367 * For each function there is a define to avoid problems with strings being
352368 * incorrectly specified.
369+ *
370+ * @return void
353371 */
354372 protected function initializeEscapers ()
355373 {
0 commit comments