* cs fixes
* removed dead code
This commit is contained in:
@@ -194,7 +194,7 @@ class Activity implements \JsonSerializable
|
||||
*/
|
||||
public function addComment(Comment $comment): Activity
|
||||
{
|
||||
if(!$this->comments->contains($comment)) {
|
||||
if (!$this->comments->contains($comment)) {
|
||||
$this->comments->add($comment);
|
||||
}
|
||||
return $this;
|
||||
@@ -206,7 +206,7 @@ class Activity implements \JsonSerializable
|
||||
*/
|
||||
public function removeComment(Comment $comment): Activity
|
||||
{
|
||||
if($this->comments->contains($comment)) {
|
||||
if ($this->comments->contains($comment)) {
|
||||
$this->comments->removeElement($comment);
|
||||
}
|
||||
return $this;
|
||||
|
||||
@@ -5,4 +5,4 @@ namespace App\Entity;
|
||||
class News
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,4 +64,4 @@ class User implements \JsonSerializable
|
||||
'displayName' => $this->getDisplayName(),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user