Documentation

NoDoubleNegativeSniff.php

PHPCSExtra, a collection of sniffs and standards for use with PHP_CodeSniffer.

Tags
copyright

2023 PHPCSExtra Contributors

license

https://opensource.org/licenses/LGPL-3.0 LGPL3

link
https://github.com/PHPCSStandards/PHPCSExtra

Table of Contents

Classes

NoDoubleNegativeSniff
Detects double negation in code, which is effectively the same as a boolean cast, but with a much higher cognitive load.

        
On this page

Search results