@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return $this->id; |
51 | 51 | } |
52 | 52 | |
53 | - public function setId(?string $id): void |
|
53 | + public function setId(?string $id) : void |
|
54 | 54 | { |
55 | 55 | $this->id = $id; |
56 | 56 | } |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * @return string[]|null |
60 | 60 | */ |
61 | - public function getTags(): ?array |
|
61 | + public function getTags(): ? array |
|
62 | 62 | { |
63 | 63 | return $this->tags; |
64 | 64 | } |
65 | 65 | |
66 | - public function setTags(?array $tags): void |
|
66 | + public function setTags(? array $tags) : void |
|
67 | 67 | { |
68 | 68 | $this->tags = $tags; |
69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @return string[]|null |
73 | 73 | */ |
74 | - public function getFiles(): ?array |
|
74 | + public function getFiles(): ? array |
|
75 | 75 | { |
76 | 76 | return $this->files; |
77 | 77 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * @param string[]|null $files |
81 | 81 | */ |
82 | - public function setFiles(?array $files): void |
|
82 | + public function setFiles(? array $files) : void |
|
83 | 83 | { |
84 | 84 | $this->files = $files; |
85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | return $this->author; |
90 | 90 | } |
91 | 91 | |
92 | - public function setAuthor(?User $author): void |
|
92 | + public function setAuthor(?User $author) : void |
|
93 | 93 | { |
94 | 94 | $this->author = $author; |
95 | 95 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | return $this->text; |
100 | 100 | } |
101 | 101 | |
102 | - public function setText(?string $text): void |
|
102 | + public function setText(?string $text) : void |
|
103 | 103 | { |
104 | 104 | $this->text = $text; |
105 | 105 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | return $this->created; |
110 | 110 | } |
111 | 111 | |
112 | - public function setCreated(?string $created): void |
|
112 | + public function setCreated(?string $created) : void |
|
113 | 113 | { |
114 | 114 | $this->created = $created; |
115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | return $this->type; |
120 | 120 | } |
121 | 121 | |
122 | - public function setType(?string $type): void |
|
122 | + public function setType(?string $type) : void |
|
123 | 123 | { |
124 | 124 | $this->type = $type; |
125 | 125 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return $this->private; |
135 | 135 | } |
136 | 136 | |
137 | - public function setPrivate(?bool $private): void |
|
137 | + public function setPrivate(?bool $private) : void |
|
138 | 138 | { |
139 | 139 | $this->private = $private; |
140 | 140 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | ): bool |
100 | 100 | { |
101 | 101 | $sendMessage = new SendMessage(); |
102 | - $sendMessage->chat_id = (string)$chatId; |
|
102 | + $sendMessage->chat_id = (string) $chatId; |
|
103 | 103 | $sendMessage->text = $text; |
104 | 104 | $sendMessage->parse_mode = $parseMode; |
105 | 105 | $sendMessage->disable_web_page_preview = $disableWebPreview; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * |
70 | 70 | * @param string $login |
71 | 71 | * |
72 | - * @return JsonResponse |
|
72 | + * @return \Symfony\Component\HttpFoundation\Response |
|
73 | 73 | */ |
74 | 74 | public function searchUserAjaxAction(string $login, UserRepository $userRepository): Response |
75 | 75 | { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
154 | - * @param Post $post |
|
154 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post $post |
|
155 | 155 | * @param string[] $tagsStrings |
156 | 156 | */ |
157 | 157 | private function updatePostTags(Post $post, array $tagsStrings): void |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
198 | - * @param Post $post |
|
198 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post $post |
|
199 | 199 | * @param array $urls |
200 | 200 | */ |
201 | 201 | private function updatePostFiles(Post $post, array $urls): void |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * @param User $user |
|
39 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\User $user |
|
40 | 40 | * @param User[] $newSubscribersList |
41 | 41 | */ |
42 | 42 | public function updateUserSubscribers(User $user, $newSubscribersList = []): void |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * @param User $user |
|
90 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\User $user |
|
91 | 91 | * @param User[] $subscribers |
92 | 92 | */ |
93 | 93 | private function processSubscribedUsers(User $user, array $subscribers): void |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @param User $user |
|
111 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\User $user |
|
112 | 112 | * @param User[] $subscribers |
113 | 113 | */ |
114 | 114 | private function processUnsubscribedUsers(User $user, array $subscribers): void |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | - * @param User $user |
|
131 | + * @param \Skobkin\Bundle\PointToolsBundle\Entity\User $user |
|
132 | 132 | * @param User[] $subscribed |
133 | 133 | * @param User[] $unsubscribed |
134 | 134 | */ |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $user = $userRepository->findUserByLogin($login); |
37 | 37 | |
38 | 38 | if (!$user) { |
39 | - throw $this->createNotFoundException('User ' . $login . ' not found.'); |
|
39 | + throw $this->createNotFoundException('User '.$login.' not found.'); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $subscriberEventsPagination = $paginator->paginate( |
@@ -142,7 +142,7 @@ |
||
142 | 142 | return $this->firstName; |
143 | 143 | } |
144 | 144 | |
145 | - public function updateFromMessageData(string $firstName, ?string $lastName, ?string $username, int $chatId): void |
|
145 | + public function updateFromMessageData(string $firstName, ?string $lastName, ?string $username, int $chatId) : void |
|
146 | 146 | { |
147 | 147 | $this->firstName = $firstName; |
148 | 148 | $this->lastName = $lastName; |