@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @return Post |
25 | 25 | */ |
26 | - public function getPost(): ?Post |
|
26 | + public function getPost(): ? Post |
|
27 | 27 | { |
28 | 28 | return $this->post; |
29 | 29 | } |
@@ -153,7 +153,7 @@ |
||
153 | 153 | return $this->createdAt; |
154 | 154 | } |
155 | 155 | |
156 | - public function getUpdatedAt(): ?\DateTime |
|
156 | + public function getUpdatedAt(): ? \DateTime |
|
157 | 157 | { |
158 | 158 | return $this->updatedAt; |
159 | 159 | } |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * @return Comment |
214 | 214 | */ |
215 | - public function getParent(): ?Comment |
|
215 | + public function getParent(): ? Comment |
|
216 | 216 | { |
217 | 217 | return $this->parent; |
218 | 218 | } |
@@ -110,14 +110,14 @@ discard block |
||
110 | 110 | return $this->login; |
111 | 111 | } |
112 | 112 | |
113 | - public function setName(?string $name): self |
|
113 | + public function setName(? string $name) : self |
|
114 | 114 | { |
115 | 115 | $this->name = $name; |
116 | 116 | |
117 | 117 | return $this; |
118 | 118 | } |
119 | 119 | |
120 | - public function getName(): ?string |
|
120 | + public function getName(): ? string |
|
121 | 121 | { |
122 | 122 | return $this->name; |
123 | 123 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | return $this; |
178 | 178 | } |
179 | 179 | |
180 | - public function getUpdatedAt(): ?\DateTime |
|
180 | + public function getUpdatedAt(): ? \DateTime |
|
181 | 181 | { |
182 | 182 | return $this->updatedAt; |
183 | 183 | } |
@@ -165,12 +165,12 @@ discard block |
||
165 | 165 | return $this; |
166 | 166 | } |
167 | 167 | |
168 | - public function getLastName(): ?string |
|
168 | + public function getLastName(): ? string |
|
169 | 169 | { |
170 | 170 | return $this->lastName; |
171 | 171 | } |
172 | 172 | |
173 | - public function setLastName(?string $lastName = null): Account |
|
173 | + public function setLastName(? string $lastName = null) : Account |
|
174 | 174 | { |
175 | 175 | $this->lastName = $lastName; |
176 | 176 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | return $this->chatId; |
202 | 202 | } |
203 | 203 | |
204 | - public function getUser(): ?User |
|
204 | + public function getUser(): ? User |
|
205 | 205 | { |
206 | 206 | return $this->user; |
207 | 207 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->getEntityManager()->persist($entity); |
14 | 14 | } |
15 | 15 | |
16 | - public function getPostWithComments(string $postId): ?Post |
|
16 | + public function getPostWithComments(string $postId): ? Post |
|
17 | 17 | { |
18 | 18 | /** @var QueryBuilder $qb */ |
19 | 19 | $qb = $this->createQueryBuilder('p'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | $this->getEntityManager()->persist($entity); |
13 | 13 | } |
14 | 14 | |
15 | - public function findOneByLowerText(string $text): ?Tag |
|
15 | + public function findOneByLowerText(string $text): ? Tag |
|
16 | 16 | { |
17 | 17 | $qb = $this->createQueryBuilder('t'); |
18 | 18 | return $qb |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Case-insensitive user search |
18 | 18 | */ |
19 | - public function findUserByLogin(string $login): ?User |
|
19 | + public function findUserByLogin(string $login): ? User |
|
20 | 20 | { |
21 | 21 | $qb = $this->createQueryBuilder('u'); |
22 | 22 |