我正在处理大量包含带有 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"
* )
* )
* )
*/