Completed
Push — master ( 4b74f6...76160a )
by Todd
12s
created
src/ComponentBuffer.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@  discard block
 block discarded – undo
50 50
         }
51 51
     }
52 52
 
53
+    /**
54
+     * @param boolean $append
55
+     */
53 56
     private function ensureEcho($append) {
54 57
         if (!$this->inEcho) {
55 58
             $this->buffer .= $this->px().'echo ';
@@ -137,7 +140,7 @@  discard block
 block discarded – undo
137 140
     /**
138 141
      * Get the depth.
139 142
      *
140
-     * @return mixed Returns the depth.
143
+     * @return integer Returns the depth.
141 144
      */
142 145
     public function getDepth() {
143 146
         return $this->depth;
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.
src/ExpressionLanguage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
         });
40 40
     }
41 41
 
42
+    /**
43
+     * @param string $name
44
+     */
42 45
     public function getFunctionCompiler($name) {
43 46
         if (isset($this->functions[$name])) {
44 47
             return $this->functions[$name]['compiler'];
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace Ebi;
9 9
 
10
-use Symfony\Component\ExpressionLanguage\ExpressionFunction;
11 10
 use Symfony\Component\ExpressionLanguage\Node\GetAttrNode;
12 11
 
13 12
 class ExpressionLanguage extends \Symfony\Component\ExpressionLanguage\ExpressionLanguage {
Please login to merge, or discard this patch.
src/FilesystemLoader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         }
51 51
     }
52 52
 
53
+    /**
54
+     * @param string $component
55
+     */
53 56
     private function componentPath($component, $full = true) {
54 57
         $subpath = str_replace('.', DIRECTORY_SEPARATOR, $component);
55 58
 
Please login to merge, or discard this patch.
src/CompilerBuffer.php 1 patch
Doc Comments   +17 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@  discard block
 block discarded – undo
77 77
         $this->current->echoLiteral($value);
78 78
     }
79 79
 
80
+    /**
81
+     * @param string $php
82
+     */
80 83
     public function echoCode($php) {
81 84
         $this->current->echoCode($php);
82 85
     }
@@ -85,6 +88,9 @@  discard block
 block discarded – undo
85 88
         $this->current->appendCode($php);
86 89
     }
87 90
 
91
+    /**
92
+     * @param integer $add
93
+     */
88 94
     public function indent($add) {
89 95
         $this->current->indent($add);
90 96
     }
@@ -93,6 +99,9 @@  discard block
 block discarded – undo
93 99
         $this->current->depth($add);
94 100
     }
95 101
 
102
+    /**
103
+     * @param string $name
104
+     */
96 105
     public function depthName($name, $add = 0) {
97 106
         return $this->current->depthName($name, $add);
98 107
     }
@@ -192,6 +201,9 @@  discard block
 block discarded – undo
192 201
         return $this;
193 202
     }
194 203
 
204
+    /**
205
+     * @param string $name
206
+     */
195 207
     public function getNodeProp(\DOMNode $node, $name, $default = null) {
196 208
         if (!$this->nodeProps->contains($node) || !array_key_exists($name, $this->nodeProps[$node])) {
197 209
             return $default;
@@ -199,6 +211,10 @@  discard block
 block discarded – undo
199 211
         return $this->nodeProps[$node][$name];
200 212
     }
201 213
 
214
+    /**
215
+     * @param string $name
216
+     * @param boolean $value
217
+     */
202 218
     public function setNodeProp(\DOMNode $node = null, $name, $value) {
203 219
         if ($node === null) {
204 220
             return $this;
@@ -286,7 +302,7 @@  discard block
 block discarded – undo
286 302
     /**
287 303
      * Set the source.
288 304
      *
289
-     * @param mixed $source
305
+     * @param string $source
290 306
      * @return $this
291 307
      */
292 308
     public function setSource($source) {
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -268,6 +268,11 @@  discard block
 block discarded – undo
268 268
         );
269 269
     }
270 270
 
271
+    /**
272
+     * @param callable $function
273
+     *
274
+     * @return callable
275
+     */
271 276
     private function getFunctionEvaluator($function) {
272 277
         if ($function === 'empty') {
273 278
             return function ($expr) {
@@ -282,6 +287,10 @@  discard block
 block discarded – undo
282 287
         return $function;
283 288
     }
284 289
 
290
+    /**
291
+     * @param string $name
292
+     * @param callable $function
293
+     */
285 294
     private function getFunctionCompiler($name, $function) {
286 295
         $var = var_export(strtolower($name), true);
287 296
         $fn = function ($expr) use ($var) {
@@ -362,6 +371,9 @@  discard block
 block discarded – undo
362 371
         return $r;
363 372
     }
364 373
 
374
+    /**
375
+     * @param string $tag
376
+     */
365 377
     protected function isComponent($tag) {
366 378
         return !isset(static::$htmlTags[$tag]);
367 379
     }
@@ -492,6 +504,9 @@  discard block
 block discarded – undo
492 504
         }
493 505
     }
494 506
 
507
+    /**
508
+     * @param string $value
509
+     */
495 510
     protected function splitExpressions($value) {
496 511
         $values = preg_split('`({\S[^}]*?})`', $value, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE);
497 512
         return $values;
@@ -825,6 +840,9 @@  discard block
 block discarded – undo
825 840
         }
826 841
     }
827 842
 
843
+    /**
844
+     * @param string $value
845
+     */
828 846
     private function isExpression($value) {
829 847
         return preg_match('`^{\S.*}$`', $value);
830 848
     }
@@ -1190,6 +1208,9 @@  discard block
 block discarded – undo
1190 1208
         $this->compileCloseTag($node, $special, $out);
1191 1209
     }
1192 1210
 
1211
+    /**
1212
+     * @param string $php
1213
+     */
1193 1214
     protected function compileEscape($php) {
1194 1215
 //        return 'htmlspecialchars('.$php.')';
1195 1216
         return '$this->escape('.$php.')';
Please login to merge, or discard this patch.