removing dead code and improving code coverage

This commit is contained in:
El RIDO
2019-05-11 22:18:35 +02:00
parent 5b67721a6a
commit be1e7babc0
5 changed files with 19 additions and 21 deletions

View File

@@ -145,7 +145,7 @@ class Comment extends AbstractModel
public function getParentId()
{
if (!array_key_exists('parentid', $this->_data)) {
$this->_data['parentid'] = '';
$this->_data['parentid'] = $this->getPaste()->getId();
}
return $this->_data['parentid'];
}