小编Ed *_*les的帖子

如何在 PHPStorm 中自动格式化 PHP 注释

我正在处理大量带有带有 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"
 * )
 * )
 * )
 */
Run Code Online (Sandbox Code Playgroud)

进入

/**
 * @SWG\Api(
 *   path="/building/{buildingId}",
 *   @SWG\Operation(
 *     method="GET",
 *     type="Building",
 *     summary="Returns a Building object by ID",
 *     nickname="building/getBuilding",
 *     @SWG\Parameter(
 * …
Run Code Online (Sandbox Code Playgroud)

php annotations phpstorm swagger-php

9
推荐指数
1
解决办法
2784
查看次数

从 Kibana 删除可视化

我刚刚在可视化 x 轴过滤器选项卡中添加了一个大型 JSON 对象,该对象将我发送到此页面

http://localhost:5601/app/kibana#/error/url-overflow?_g=()

为了您的安全,Kibana 将浏览器中的 URL 限制为 25000 个字符。

Kibana 将我拒之门外。如何删除该可视化?

elasticsearch kibana

5
推荐指数
2
解决办法
3390
查看次数

标签 统计

annotations ×1

elasticsearch ×1

kibana ×1

php ×1

phpstorm ×1

swagger-php ×1