phpdoc param, return, throws formatted different

php-cs-fixer changes the phpdoc to be:

/**
* @param int $id
*
* @throws \Exception
*
* @return Collection
*/
public function getList(int $id): Collection

 


phpstorm reformat code changes the phpdoc to be:

/**
* @param int $id
*
* @return Collection
* @throws \Exception
*
*/
public function getList(int $id): Collection

 

The @param, @return and @throws order and spacing are different.
How can I get the two be produce the same result?
 

0
1 comment
Hello,

For example, you can set CS Fixer as your formatter at Settings | PHP | Quality Tools
0

Please sign in to leave a comment.