apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -32,7 +32,6 @@ class CommentEmbeddable
/**
* Embeddable does not support associations.
*
* @var int
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $userId = null;
@@ -43,7 +42,7 @@ class CommentEmbeddable
}
/**
* @return DateTime
* @return \DateTime
*/
public function getDate()
{
@@ -65,10 +64,7 @@ class CommentEmbeddable
$this->comment = $comment;
}
/**
* @param DateTime $date
*/
public function setDate(?DateTime $date)
public function setDate(?\DateTime $date)
{
$this->date = $date;
}

View File

@@ -13,7 +13,6 @@ namespace Chill\MainBundle\Entity\Embeddable;
use Chill\MainBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use function array_key_exists;
/**
* @ORM\Embeddable
@@ -39,7 +38,7 @@ class PrivateCommentEmbeddable
public function hasCommentForUser(User $user): bool
{
return array_key_exists($user->getId(), $this->comments)
return \array_key_exists($user->getId(), $this->comments)
&& '' !== $this->comments[$user->getId()];
}