Run Rector on your code to see what it can do for you:

 <?php
 
 abstract class BaseAuthController
     }
 }
 
-class OAuthController extends BaseAuthController
-{
-    /**
-     * @POST("/accessToken")
-     * @throws ValidationException
-     *
-     * @Operation(summary="Get access token.")
-     *
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\Common\ApiModules\OAuth\Model\ClientCredentialsGrantAccessTokenResponse")), responseCode="200")
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\Common\Api\Model\BadRequestResponse")), responseCode="400")
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\Common\OAuth20\Model\UnauthorizedResponse")), responseCode="401")
-     * @RequestBody(content=@Content(schema=@ClassSchema(implementation="Incert\Common\ApiModules\OAuth\Model\ClientCredentialsGrantAccessTokenRequest")))
-     */
-    public function accessToken(): void
-    {
-        parent::accessToken();
-    }
+class OAuthController extends BaseAuthController
+{
 }
 
-class AuthorizationServerController extends BaseAuthController
-{
-    /**
-     * @POST("/accessToken")
-     * @throws ValidationException
-     *
-     * @Operation(summary="Get access token.")
-     *
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\FrontendModules\OAuth20\AuthorizationServer\Model\AuthorizationCodeGrantAccessTokenResponse")), responseCode="200")
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\Common\Api\Model\BadRequestResponse")), responseCode="400")
-     * @Response(content=@Content(schema=@ClassSchema(implementation="Incert\Common\OAuth20\Model\UnauthorizedResponse")), responseCode="401")
-     * @RequestBody(content=@Content(schema=@ClassSchema(implementation="Incert\FrontendModules\OAuth20\AuthorizationServer\Model\AuthorizationCodeGrantAccessTokenRequest")))
-     */
-    public function accessToken(): void
-    {
-        parent::accessToken();
-    }
+class AuthorizationServerController extends BaseAuthController
+{
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 9985b9 - released at 2026-09-05 15:05