Documentation

UnconditionalIfStatementSniff.php

Detects unconditional if- and elseif-statements.

This rule is based on the PMD rule catalogue. The Unconditional If Statement sniff detects statement conditions that are only set to one of the constant values true or false

class Foo { public function close() { if (true) { // ... } } }
Tags
author

Manuel Pichler mapi@manuel-pichler.de

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

UnconditionalIfStatementSniff

Search results