diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-09 08:49:24 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-09 08:49:24 +0200 |
commit | cdcd61d4c80224570bff413c948019d109b099b0 (patch) | |
tree | fbbf329317cbf3b4f29248aa05d7aa50851b9f4a /build | |
parent | 99e14b5ada0aceb7a0b5a54b7b5a49d671304036 (diff) | |
download | nextcloud-server-cdcd61d4c80224570bff413c948019d109b099b0.tar.gz nextcloud-server-cdcd61d4c80224570bff413c948019d109b099b0.zip |
Use empty for the OCP @since checker
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'build')
-rw-r--r-- | build/OCPSinceChecker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/OCPSinceChecker.php b/build/OCPSinceChecker.php index ff314170149..75ce9c97cbc 100644 --- a/build/OCPSinceChecker.php +++ b/build/OCPSinceChecker.php @@ -55,7 +55,7 @@ class SinceTagCheckVisitor extends \PhpParser\NodeVisitorAbstract { /** @var \PhpParser\Comment\Doc[] $comments */ $comments = $node->getAttribute('comments'); - if (count($comments) === 0) { + if (empty($comments)) { $this->errors[] = 'PHPDoc is needed for ' . $this->namespace . '\\' . $this->className . '::' . $node->name; return; } @@ -78,7 +78,7 @@ class SinceTagCheckVisitor extends \PhpParser\NodeVisitorAbstract { /** @var \PhpParser\Comment\Doc[] $comments */ $comments = $node->getAttribute('comments'); - if (count($comments) === 0) { + if (empty($comments)) { $this->errors[] = 'PHPDoc is needed for ' . $this->namespace . '\\' . $this->className . '::' . $node->name; return; } |