@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | return $extensions->getExtensions(); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param string $path |
|
61 | + */ |
|
59 | 62 | protected function hasValidTemplateExtension($path) |
60 | 63 | { |
61 | 64 | $extensions = new ExtensionsHelper($this->extension); |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return $extensions->findValidTemplatePath($path, ''); |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param string|null $path |
|
87 | + */ |
|
82 | 88 | protected function getTemplateContents($path, $value = null) |
83 | 89 | { |
84 | 90 | if ($path !== null) { |
@@ -144,6 +150,9 @@ discard block |
||
144 | 150 | return $this->lexer->advance(); |
145 | 151 | } |
146 | 152 | |
153 | + /** |
|
154 | + * @param integer $n |
|
155 | + */ |
|
147 | 156 | public function skip($n) |
148 | 157 | { |
149 | 158 | while ($n--) { |
@@ -199,6 +208,9 @@ discard block |
||
199 | 208 | return $block; |
200 | 209 | } |
201 | 210 | |
211 | + /** |
|
212 | + * @param string $type |
|
213 | + */ |
|
202 | 214 | protected function expect($type) |
203 | 215 | { |
204 | 216 | if ($this->peekType() === $type) { |
@@ -211,6 +223,9 @@ discard block |
||
211 | 223 | throw new \ErrorException("\n" . sprintf('Expected %s, but got %s in %dth line : %s', $type, $this->peekType(), $lineNumber, $lineString) . "\n", 24); |
212 | 224 | } |
213 | 225 | |
226 | + /** |
|
227 | + * @param string $type |
|
228 | + */ |
|
214 | 229 | protected function accept($type) |
215 | 230 | { |
216 | 231 | if ($this->peekType() === $type) { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Dummy URL stat method to prevent PHP "undefined method" errors. |
72 | 72 | * |
73 | - * @return array |
|
73 | + * @return integer[] |
|
74 | 74 | */ |
75 | 75 | public function url_stat($path, $flags) |
76 | 76 | { |
@@ -9,6 +9,10 @@ |
||
9 | 9 | public function drawFile( $_template ) { |
10 | 10 | return $this->draw($_template); |
11 | 11 | } |
12 | + |
|
13 | + /** |
|
14 | + * @param string $_template |
|
15 | + */ |
|
12 | 16 | public function drawText( $_template ) { |
13 | 17 | return $this->draw(trim($_template)); |
14 | 18 | } |