* cs fixes

* removed dead code
This commit is contained in:
Dávid Danyi
2018-07-25 18:39:08 +02:00
parent 0d5299c7b7
commit 22fe49d4ca
4 changed files with 9 additions and 14 deletions

View File

@@ -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;

View File

@@ -5,4 +5,4 @@ namespace App\Entity;
class News
{
}
}

View File

@@ -64,4 +64,4 @@ class User implements \JsonSerializable
'displayName' => $this->getDisplayName(),
];
}
}
}