phpcbf made the following correction:

- * @param $rule array
+ * @param $rule
+ *   array

This would be more useful:

- * @param $rule array
+ * @param array $rule

If the text following the variable name is a valid type, it should move it to the other side of the variable name.

Comments

Liam Morland created an issue. See original summary.

  • klausi committed 3b91cf4 on 8.x-2.x
    feat(FunctionCommentSniff): Add fixer to move @param data type before...

klausi credited klausi.

klausi credited klausi.

klausi’s picture

Status: Active » Fixed

Good idea, added a fixer that moves the comment to the data type position if it is just one word.

liam morland’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.