Skip to content

Commit 6e57211

Browse files
committed
minor #408 Fix annotations code style issues for entities (voronkovich)
This PR was squashed before being merged into the master branch (closes #408). Discussion ---------- Fix annotations code style issues for entities Commits ------- 270fca8 Fix annotations code style issues for entities
2 parents 0bfe0fd + 270fca8 commit 6e57211

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

app/data/blog.sqlite

0 Bytes
Binary file not shown.

src/AppBundle/Entity/Comment.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ class Comment
5252
* @ORM\Column(type="text")
5353
* @Assert\NotBlank(message="comment.blank")
5454
* @Assert\Length(
55-
* min = "5",
56-
* minMessage = "comment.too_short",
57-
* max = "10000",
58-
* maxMessage = "comment.too_long"
55+
* min=5,
56+
* minMessage="comment.too_short",
57+
* max=10000,
58+
* maxMessage="comment.too_long"
5959
* )
6060
*/
6161
private $content;
@@ -64,15 +64,15 @@ class Comment
6464
* @var string
6565
*
6666
* @ORM\Column(type="string")
67-
* @Assert\Email()
67+
* @Assert\Email
6868
*/
6969
private $authorEmail;
7070

7171
/**
7272
* @var \DateTime
7373
*
7474
* @ORM\Column(type="datetime")
75-
* @Assert\DateTime()
75+
* @Assert\DateTime
7676
*/
7777
private $publishedAt;
7878

@@ -82,7 +82,7 @@ public function __construct()
8282
}
8383

8484
/**
85-
* @Assert\IsTrue(message = "comment.is_spam")
85+
* @Assert\IsTrue(message="comment.is_spam")
8686
*/
8787
public function isLegitComment()
8888
{

src/AppBundle/Entity/Post.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Post
4343
* @var string
4444
*
4545
* @ORM\Column(type="string")
46-
* @Assert\NotBlank()
46+
* @Assert\NotBlank
4747
*/
4848
private $title;
4949

@@ -67,23 +67,23 @@ class Post
6767
*
6868
* @ORM\Column(type="text")
6969
* @Assert\NotBlank(message="post.blank_content")
70-
* @Assert\Length(min = "10", minMessage = "post.too_short_content")
70+
* @Assert\Length(min=10, minMessage="post.too_short_content")
7171
*/
7272
private $content;
7373

7474
/**
7575
* @var string
7676
*
7777
* @ORM\Column(type="string")
78-
* @Assert\Email()
78+
* @Assert\Email
7979
*/
8080
private $authorEmail;
8181

8282
/**
8383
* @var \DateTime
8484
*
8585
* @ORM\Column(type="datetime")
86-
* @Assert\DateTime()
86+
* @Assert\DateTime
8787
*/
8888
private $publishedAt;
8989

@@ -95,7 +95,7 @@ class Post
9595
* mappedBy="post",
9696
* orphanRemoval=true
9797
* )
98-
* @ORM\OrderBy({"publishedAt" = "DESC"})
98+
* @ORM\OrderBy({"publishedAt": "DESC"})
9999
*/
100100
private $comments;
101101

0 commit comments

Comments
 (0)