-
| I would like phpcs to tell me or correct automatically if it is possible when there is a function with parameters with a single space between the variable type and the variable name. Here is an example to make it better understood.       /**
      * Handle the incoming request.
      *
-     * @param \App\Http\Requests\User\UserUpdateRequest $request
+     * @param  \App\Http\Requests\User\UserUpdateRequest  $request
-     * @param \App\Models\User $user
+     * @param  \App\Models\User  $user
      * @return \Illuminate\Http\RedirectResponse
     */
    public function __invoke(UserUpdateRequest $request, User $user)
    {
        ...Is it possible to do so? Can a third party package like slevomat/coding-standard do it? | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
| Any suggestions? I would still like to know | 
Beta Was this translation helpful? Give feedback.
-
| Perfectly possible, but very non-standard, so I doubt there will be pre-existing sniffs doing this. You can always write your own. | 
Beta Was this translation helpful? Give feedback.
Perfectly possible, but very non-standard, so I doubt there will be pre-existing sniffs doing this. You can always write your own.