@@ -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 | { |
@@ -504,7 +504,7 @@ |
||
| 504 | 504 | * |
| 505 | 505 | * @param DOMDocument $dom |
| 506 | 506 | * @param array $replacement |
| 507 | - * @return DOMNode |
|
| 507 | + * @return null|DOMNode |
|
| 508 | 508 | */ |
| 509 | 509 | protected static function createReplacementNode(DOMDocument $dom, array $replacement) |
| 510 | 510 | { |
@@ -88,8 +88,6 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Convert a local-name() function call |
| 90 | 90 | * |
| 91 | - * @param string $attrName |
|
| 92 | - * @return string |
|
| 93 | 91 | */ |
| 94 | 92 | public function convertLocalName() |
| 95 | 93 | { |
@@ -99,8 +97,6 @@ discard block |
||
| 99 | 97 | /** |
| 100 | 98 | * Convert a name() function call |
| 101 | 99 | * |
| 102 | - * @param string $attrName |
|
| 103 | - * @return string |
|
| 104 | 100 | */ |
| 105 | 101 | public function convertName() |
| 106 | 102 | { |
@@ -43,6 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * |
| 45 | 45 | * |
| 46 | + * @param string $expr |
|
| 46 | 47 | * @return string |
| 47 | 48 | */ |
| 48 | 49 | public function convert($expr) |
@@ -149,7 +150,7 @@ discard block |
||
| 149 | 150 | /** |
| 150 | 151 | * |
| 151 | 152 | * |
| 152 | - * @param array $matches |
|
| 153 | + * @param string[] $matches |
|
| 153 | 154 | * @param string $name |
| 154 | 155 | * @return string[] |
| 155 | 156 | */ |
@@ -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 | { |