PHP-CS-Fixer: Alignment get messed up when docblock is present

Alignment get messed up when docblock is present

Code before cs-fixer

    /**
     * @param $param
     * @return mixed
     */
        public function length($string)
    {
        return strlen($string);
    }

Code after cs-fixer

    /**
     * @param $param
     * @return mixed
     */
        public function length($string)
        {
            return strlen($string);
        }

command used php-cs-fixer fix --level=psr2 File.php

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 16 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Fixed, will be released soon. thanks to @julienfalque !