NegatedAndsToPositiveOrsRector

Simplify negated "and" conditions to "or" with de Morgan theorem

 $a = 5;
 $b = 10;
-$result = !($a > 20 && $b <= 50);
+$result = $a <= 20 || $b > 50;

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\BooleanNot\NegatedAndsToPositiveOrsRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        NegatedAndsToPositiveOrsRector::class,
    ]);
SETS:  Code Quality