Completed
Push — master ( f0029a...cef2df )
by Todd
03:39
created
src/Compiler.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -245,6 +245,11 @@  discard block
 block discarded – undo
245 245
         );
246 246
     }
247 247
 
248
+    /**
249
+     * @param callable $function
250
+     *
251
+     * @return callable
252
+     */
248 253
     private function getFunctionEvaluator($function) {
249 254
         if ($function === 'empty') {
250 255
             return function ($expr) {
@@ -259,6 +264,10 @@  discard block
 block discarded – undo
259 264
         return $function;
260 265
     }
261 266
 
267
+    /**
268
+     * @param string $name
269
+     * @param callable $function
270
+     */
262 271
     private function getFunctionCompiler($name, $function) {
263 272
         $var = var_export(strtolower($name), true);
264 273
         $fn = function ($expr) use ($var) {
@@ -334,6 +343,9 @@  discard block
 block discarded – undo
334 343
         return $r;
335 344
     }
336 345
 
346
+    /**
347
+     * @param string $tag
348
+     */
337 349
     protected function isComponent($tag) {
338 350
         return !isset(static::$htmlTags[$tag]);
339 351
     }
@@ -748,6 +760,9 @@  discard block
 block discarded – undo
748 760
         }
749 761
     }
750 762
 
763
+    /**
764
+     * @param string $value
765
+     */
751 766
     private function isExpression($value) {
752 767
         return preg_match('`^{\S.*}$`', $value);
753 768
     }
@@ -987,6 +1002,9 @@  discard block
 block discarded – undo
987 1002
         return $text;
988 1003
     }
989 1004
 
1005
+    /**
1006
+     * @param string $text
1007
+     */
990 1008
     protected function rtrim($text, \DOMNode $node, CompilerBuffer $out) {
991 1009
         if ($this->inPre($node)) {
992 1010
             return $text;
Please login to merge, or discard this patch.
src/Ebi.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -90,6 +90,11 @@
 block discarded – undo
90 90
         $this->compiler->defineFunction($name, $function);
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $func
95
+     *
96
+     * @return callable|null
97
+     */
93 98
     private function mb($func) {
94 99
         return function_exists("mb_$func") ? "mb_$func" : $func;
95 100
     }
Please login to merge, or discard this patch.