inspection fixes

This commit is contained in:
Dennis Eichhorn 2020-07-31 18:13:52 +02:00
parent ed44fb4992
commit 41e613c84c
2 changed files with 5 additions and 1 deletions

View File

@ -45,6 +45,10 @@ class Comments
->addConstraint('news_comment_list', 'comment_list', 'comment_list_id'); ->addConstraint('news_comment_list', 'comment_list', 'comment_list_id');
$mapper = \file_get_contents(__DIR__ . '/../../Models/NewsArticleMapper.php'); $mapper = \file_get_contents(__DIR__ . '/../../Models/NewsArticleMapper.php');
if ($mapper === false) {
throw new \Exception('Couldn\'t parse mapper');
}
$mapper = \str_replace([ $mapper = \str_replace([
'// @Module Comments ', '// @Module Comments ',
'/* @Module Comments ', '/* @Module Comments ',

View File

@ -202,7 +202,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
/** /**
* Set comment list * Set comment list
* *
* @param CommentList $comments * @param int|CommentList $comments Comment list
* *
* @return void * @return void
* *