driade / phpfmt8

PHP formatter for Sublime Text 4, with PHP 8 support.
BSD 3-Clause "New" or "Revised" License
45 stars 2 forks source link

Named Arguments: There are no spaces between parameters and naming #32

Closed glauca closed 1 year ago

glauca commented 1 year ago

before format

<?php

class Message
{
    protected $merchant;

    public function getMerchant(): Merchant
    {
        if (!$this->merchant) {
            $this->merchant = new Merchant(
                mchId: $this->config['mch_id'],
                serial: $this->config['serial']
            );
        }

        return $this->merchant;
    }
}

after format

<?php

class Message
{
    protected $merchant;

    public function getMerchant(): Merchant
    {
        if (!$this->merchant) {
            $this->merchant = new Merchant(
                mchId:$this->config['mch_id'],
                serial:$this->config['serial']
            );
        }

        return $this->merchant;
    }
}
driade commented 1 year ago

Thank you, fixed