| 1 | <?php |
||
| 16 | class DisallowObjectParamsWithGeneratedName extends TemplateCheck |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Check for <param> elements with a generated "name" attribute |
||
| 20 | * |
||
| 21 | * This check will reject <param> elements whose "name" attribute is generated by an |
||
| 22 | * <xsl:attribute/> element. This is a setup that has no practical use and should be eliminated |
||
| 23 | * because it makes it much harder to check the param's name, and therefore infer the type of |
||
| 24 | * content it expects |
||
| 25 | * |
||
| 26 | * @param DOMElement $template <xsl:template/> node |
||
| 27 | * @param Tag $tag Tag this template belongs to |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | 2 | public function check(DOMElement $template, Tag $tag) |
|
| 41 | } |