I have installed php-cs-fixer
& using with vim
plugin https://github.com/stephpy/vim-php-cs-fixer
. I am using custom config file from https://github.com/laravel/framework/blob/5.4/.php_cs
. But I am having this issue where extra space after @param
from comment
block gets deleted.
How can I fix this? Thanks for in advance.
Laravel uses PSR2 coding standard.
From laravel.com about documentation -
Note that the @param
attribute is followed by two spaces, the argument type, two more spaces, and finally the variable name:
/**
* Register a binding with the container.
*
* @param string|array $abstract
* @param \Closure|string|null $concrete
* @param bool $shared
* @return void
*/
public function bind($abstract, $concrete = null, $shared = false)
{
//
}
Thanks.