Fork me on GitHub
a Sensio Labs Product

BoY42 (v3.15.1) 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!";
 }
The logo is © 2010-2022 Sensio Labs