Fork me on GitHub
a Sensio Labs Product

Jump & Run (v3.28.0) edition

Rule not_operator_with_successor_space

Logical NOT operators (!) should have one trailing whitespace.

Examples

Example #1

--- Original
+++ New
 <?php

-if (!$bar) {
+if (! $bar) {
     echo "Help!";
 }
The logo is © 2010-2022 Sensio Labs