File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ class Comment
52
52
* @ORM\Column(type="text")
53
53
* @Assert\NotBlank(message="comment.blank")
54
54
* @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"
59
59
* )
60
60
*/
61
61
private $ content ;
@@ -64,15 +64,15 @@ class Comment
64
64
* @var string
65
65
*
66
66
* @ORM\Column(type="string")
67
- * @Assert\Email()
67
+ * @Assert\Email
68
68
*/
69
69
private $ authorEmail ;
70
70
71
71
/**
72
72
* @var \DateTime
73
73
*
74
74
* @ORM\Column(type="datetime")
75
- * @Assert\DateTime()
75
+ * @Assert\DateTime
76
76
*/
77
77
private $ publishedAt ;
78
78
@@ -82,7 +82,7 @@ public function __construct()
82
82
}
83
83
84
84
/**
85
- * @Assert\IsTrue(message = "comment.is_spam")
85
+ * @Assert\IsTrue(message= "comment.is_spam")
86
86
*/
87
87
public function isLegitComment ()
88
88
{
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class Post
43
43
* @var string
44
44
*
45
45
* @ORM\Column(type="string")
46
- * @Assert\NotBlank()
46
+ * @Assert\NotBlank
47
47
*/
48
48
private $ title ;
49
49
@@ -67,23 +67,23 @@ class Post
67
67
*
68
68
* @ORM\Column(type="text")
69
69
* @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")
71
71
*/
72
72
private $ content ;
73
73
74
74
/**
75
75
* @var string
76
76
*
77
77
* @ORM\Column(type="string")
78
- * @Assert\Email()
78
+ * @Assert\Email
79
79
*/
80
80
private $ authorEmail ;
81
81
82
82
/**
83
83
* @var \DateTime
84
84
*
85
85
* @ORM\Column(type="datetime")
86
- * @Assert\DateTime()
86
+ * @Assert\DateTime
87
87
*/
88
88
private $ publishedAt ;
89
89
@@ -95,7 +95,7 @@ class Post
95
95
* mappedBy="post",
96
96
* orphanRemoval=true
97
97
* )
98
- * @ORM\OrderBy({"publishedAt" = "DESC"})
98
+ * @ORM\OrderBy({"publishedAt": "DESC"})
99
99
*/
100
100
private $ comments ;
101
101
You can’t perform that action at this time.
0 commit comments