Documentation

UnusedFunctionParameterSniff.php

Checks for unused function parameters.

This sniff checks that all function parameters are used in the function body. One exception is made for empty function bodies or function bodies that only contain comments. This could be useful for the classes that implement an interface that defines multiple methods but the implementation only needs some of them.

Tags
author

Manuel Pichler mapi@manuel-pichler.de

author

Greg Sherwood gsherwood@squiz.net

copyright

2007-2014 Manuel Pichler. All rights reserved.

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Interfaces, Classes and Traits

UnusedFunctionParameterSniff

Search results