github lkrms/pretty-php v0.4.92

one day ago

Fixed

  • Fix issue where newlines adjacent to boolean operators are propagated across closure and ternary boundaries

    Input:

    <?php
    $a = $foo && $bar
        ? $foo($long, $list, $of, $arguments) &&
            $bar($long, $list, $of, $arguments)
        : $b;

    Output (before fix):

    <?php
    $a = $foo &&
        $bar
            ? $foo($long, $list, $of, $arguments) &&
                $bar($long, $list, $of, $arguments)
            : $b;

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.