| @@ -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 |  	{ | 
| @@ -42,11 +42,16 @@ discard block | ||
| 42 | 42 | |
| 43 | 43 | /** | 
| 44 | 44 |  	* {@inheritdoc} | 
| 45 | + * @param string $expr | |
| 45 | 46 | */ | 
| 46 | 47 | protected function evaluateExpression($expr) | 
| 47 | 48 |  	{ | 
| 48 | 49 | $expr = preg_replace_callback( | 
| 49 | 50 | '(([\'"])(.*?)\\1)s', | 
| 51 | + | |
| 52 | + /** | |
| 53 | + * @param string $m | |
| 54 | + */ | |
| 50 | 55 | function ($m) | 
| 51 | 56 |  			{ | 
| 52 | 57 | return $m[1] . bin2hex($m[2]) . $m[1]; | 
| @@ -56,6 +61,10 @@ discard block | ||
| 56 | 61 | $expr = parent::evaluateExpression($expr); | 
| 57 | 62 | $expr = preg_replace_callback( | 
| 58 | 63 | '(([\'"])(.*?)\\1)s', | 
| 64 | + | |
| 65 | + /** | |
| 66 | + * @param string $m | |
| 67 | + */ | |
| 59 | 68 | function ($m) | 
| 60 | 69 |  			{ | 
| 61 | 70 | return $m[1] . hex2bin($m[2]) . $m[1]; | 
| @@ -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 |  	{ | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | |
| 24 | 24 | /** | 
| 25 | 25 | * @param Normalizer $normalizer | 
| 26 | - * @return void | |
| 26 | + * @return string | |
| 27 | 27 | */ | 
| 28 | 28 | public function __construct(Normalizer $normalizer) | 
| 29 | 29 |  	{ | 
| @@ -94,8 +94,6 @@ discard block | ||
| 94 | 94 | * Append an <output/> element for given XPath expression to given node | 
| 95 | 95 | * | 
| 96 | 96 | * @param DOMElement $parentNode Parent node | 
| 97 | - * @param string $expr XPath expression | |
| 98 | - * @return void | |
| 99 | 97 | */ | 
| 100 | 98 | protected function appendXPathOutput(DOMElement $parentNode, $content) | 
| 101 | 99 |  	{ |