mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
apply null coalescing operator, strict equality, avoid aliases, prefer empty
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ class Paste extends AbstractModel
|
||||
$comment = new Comment($this->_conf, $this->_store);
|
||||
$comment->setPaste($this);
|
||||
$comment->setParentId($parentId);
|
||||
if ($commentId !== '') {
|
||||
if (!empty($commentId)) {
|
||||
$comment->setId($commentId);
|
||||
}
|
||||
return $comment;
|
||||
|
||||
Reference in New Issue
Block a user