pretty-php icon indicating copy to clipboard operation
pretty-php copied to clipboard

Improve hanging indentation

Open lkrms opened this issue 1 year ago • 0 comments

  • [ ] Arrow function expressions shouldn't be indented when align-fn is enabled

    <?php
    fn() =>
        $foo
            || $bar;  // Remove indentation here
    
  • [ ] Overhanging indentation should be applied when a chain operator is adjacent

    <?php
    $foo = bar('foo',
        'bar')  // Add indentation here
        ->baz()
        ->qux();
    

lkrms avatar Aug 24 '24 06:08 lkrms