我的构造函数的参数写在不同的行上。当我按 Ctrl+Alt+Shift+L 格式化代码时,PhpStorm 会向较短的参数类型添加空格,以便列的长度相等。
我无法弄清楚是哪个代码样式设置造成的。我想禁用它。
它能做什么:
public function __construct(
AdvertisingDetailsAdapter $advertisingDetailsAdapter,
AdAccountService $adAccountService,
BusinessManagerService $businessManagerService
)
Run Code Online (Sandbox Code Playgroud)
我想要的是:
public function __construct(
AdvertisingDetailsAdapter $advertisingDetailsAdapter,
AdAccountService $adAccountService,
BusinessManagerService $businessManagerService
)
Run Code Online (Sandbox Code Playgroud)