Fork me on GitHub
a Sensio Labs Product

Space Sets (v3.64.0) edition

Rule not_operator_with_space

Logical NOT operators (!) should have leading and trailing whitespaces.

Examples

Example #1

--- Original
+++ New
 <?php

-if (!$bar) {
+if ( ! $bar) {
     echo "Help!";
 }

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.