Completed
Push — master ( c74a72...239795 )
by Olivier
04:51
created
lib/Engine.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,6 +115,9 @@  discard block
 block discarded – undo
115 115
 	protected $trace = [];
116 116
 	protected $errors = [];
117 117
 
118
+	/**
119
+	 * @param string[] $a
120
+	 */
118 121
 	public function trace_enter($a)
119 122
 	{
120 123
 		array_unshift($this->trace, $a);
@@ -205,6 +208,9 @@  discard block
 block discarded – undo
205 208
 		return $rc;
206 209
 	}
207 210
 
211
+	/**
212
+	 * @return string
213
+	 */
208 214
 	public function get_file()
209 215
 	{
210 216
 		foreach ($this->trace as $trace)
@@ -233,6 +239,9 @@  discard block
 block discarded – undo
233 239
 
234 240
 	protected $templates = [];
235 241
 
242
+	/**
243
+	 * @param string $name
244
+	 */
236 245
 	public function addTemplate($name, $template)
237 246
 	{
238 247
 		if (isset($this->templates[$name]))
@@ -317,7 +326,7 @@  discard block
 block discarded – undo
317 326
 	/**
318 327
 	 * Calls a template.
319 328
 	 *
320
-	 * @param $name
329
+	 * @param string $name
321 330
 	 * @param array $args
322 331
 	 *
323 332
 	 * @return string
@@ -376,6 +385,9 @@  discard block
 block discarded – undo
376 385
 	**
377 386
 	*/
378 387
 
388
+	/**
389
+	 * @return Node[]
390
+	 */
379 391
 	protected function get_compiled($template)
380 392
 	{
381 393
 		static $compiler;
Please login to merge, or discard this patch.
lib/Evaluator.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -264,6 +264,10 @@
 block discarded – undo
264 264
 		return $parts;
265 265
 	}
266 266
 
267
+	/**
268
+	 * @param string $expression
269
+	 * @param boolean $silent
270
+	 */
267 271
 	protected function evaluate($context, $expression, $tokens, $silent)
268 272
 	{
269 273
 		$expression_path = [];
Please login to merge, or discard this patch.