No need PhpDocSignatureInspection for _ide_helper when method doc-comment is empty

This commit is contained in:
Thach Nguyen
2018-01-27 03:48:06 +07:00
parent a44572676a
commit 07e35d808c
+1 -1
View File
@@ -29,7 +29,7 @@ namespace <?= $namespace == '__root' ? '' : $namespace ?>{
<?= $docComment ?>
<?php endif; ?>
public static function <?= $method->getName() ?>(<?= $nParams < count($mParams) ? '/** @noinspection PhpDocSignatureInspection */' . implode(', /** @noinspection PhpDocSignatureInspection */', $mParams) : $method->getParamsWithDefault() ?>){
public static function <?= $method->getName() ?>(<?= ($docComment && $nParams < count($mParams)) ? '/** @noinspection PhpDocSignatureInspection */' . implode(', /** @noinspection PhpDocSignatureInspection */', $mParams) : $method->getParamsWithDefault() ?>){
<?php if ($method->getDeclaringClass() !== $method->getRoot()): ?>
//Method inherited from <?= $method->getDeclaringClass() ?>