我正在处理许多包含Swagger PHP注释的PHP代码块文档,但它们没有缩进。有没有自动添加空格格式的方法?
转换中...
/**
* @SWG\Api(
* path="/building/{buildingId}",
* @SWG\Operation(
* method="GET",
* type="Building",
* summary="Returns a Building object by ID",
* nickname="building/getBuilding",
* @SWG\Parameter(
* name="buildingId",
* description="ID of the building that needs to be fetched",
* paramType="path",
* required=false,
* type="string",
* defaultValue="1"
* )
* )
* )
*/
进入
/**
* @SWG\Api(
* path="/building/{buildingId}",
* @SWG\Operation(
* method="GET",
* type="Building",
* summary="Returns a Building object by ID",
* nickname="building/getBuilding",
* @SWG\Parameter(
* name="buildingId",
* description="ID of the building that needs to be fetched",
* paramType="path",
* required=false,
* type="string",
* defaultValue="1"
* )
* )
* )
*/