@@ -136,7 +136,7 @@ |
||
136 | 136 | * Query the Closure Compiler service |
137 | 137 | * |
138 | 138 | * @param string $body Request body |
139 | - * @return string|false Response body, or FALSE |
|
139 | + * @return string|boolean Response body, or FALSE |
|
140 | 140 | */ |
141 | 141 | protected function query($body) |
142 | 142 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * Create a text node in current template |
82 | 82 | * |
83 | 83 | * @param string $content |
84 | - * @return DOMText |
|
84 | + * @return DOMNode |
|
85 | 85 | */ |
86 | 86 | protected function createTextNode($content) |
87 | 87 | { |
@@ -332,6 +332,8 @@ discard block |
||
332 | 332 | * @param string &$head |
333 | 333 | * @param string &$tail |
334 | 334 | * @param bool $passthrough |
335 | + * @param string $head |
|
336 | + * @param string $tail |
|
335 | 337 | * @return void |
336 | 338 | */ |
337 | 339 | protected static function convertPHP(&$head, &$tail, $passthrough) |
@@ -349,6 +351,10 @@ discard block |
||
349 | 351 | "(\\\$node->getAttribute\\('([^']+)'\\))", |
350 | 352 | preg_replace_callback( |
351 | 353 | '(if\\(\\$node->hasAttribute\\(([^\\)]+)[^}]+)', |
354 | + |
|
355 | + /** |
|
356 | + * @param string $m |
|
357 | + */ |
|
352 | 358 | function ($m) |
353 | 359 | { |
354 | 360 | return str_replace('$node->getAttribute(' . $m[1] . ')', '', $m[0]); |
@@ -667,7 +673,7 @@ discard block |
||
667 | 673 | * Get a string suitable as a str_replace() replacement for given PHP code |
668 | 674 | * |
669 | 675 | * @param string $php Original code |
670 | - * @return bool|string Static replacement if possible, or FALSE otherwise |
|
676 | + * @return string|false Static replacement if possible, or FALSE otherwise |
|
671 | 677 | */ |
672 | 678 | protected static function getStaticRendering($php) |
673 | 679 | { |
@@ -689,7 +695,7 @@ discard block |
||
689 | 695 | * Get string rendering strategies for given chunks |
690 | 696 | * |
691 | 697 | * @param string $php |
692 | - * @return array |
|
698 | + * @return string |
|
693 | 699 | */ |
694 | 700 | protected static function getStringRenderings($php) |
695 | 701 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param Optimizer $optimizer |
30 | - * @return void |
|
30 | + * @return Normalizer |
|
31 | 31 | */ |
32 | 32 | public function __construct(Optimizer $optimizer) |
33 | 33 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param Normalizer $normalizer |
25 | - * @return void |
|
25 | + * @return string |
|
26 | 26 | */ |
27 | 27 | public function __construct(Normalizer $normalizer) |
28 | 28 | { |
@@ -32,6 +32,7 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * {@inheritdoc} |
35 | + * @param string $expr |
|
35 | 36 | */ |
36 | 37 | protected function evaluateExpression($expr) |
37 | 38 | { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * |
64 | 64 | * @param DOMDocument $dom |
65 | 65 | * @param array $replacement |
66 | - * @return DOMNode |
|
66 | + * @return null|\DOMNode |
|
67 | 67 | */ |
68 | 68 | protected static function createReplacementNode(DOMDocument $dom, array $replacement) |
69 | 69 | { |
@@ -218,9 +218,6 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
221 | - * @param string $str |
|
222 | - * @param string $flags |
|
223 | - * @return Regexp |
|
224 | 221 | */ |
225 | 222 | public function parseRegexp(string $regexp, string $flags): Regexp |
226 | 223 | { |
@@ -239,8 +236,6 @@ discard block |
||
239 | 236 | } |
240 | 237 | |
241 | 238 | /** |
242 | - * @param string $str |
|
243 | - * @return bool |
|
244 | 239 | */ |
245 | 240 | public function parseTrue(): bool |
246 | 241 | { |