@@ 187-191 (lines=5) @@ | ||
184 | private function processLast(Account $account, array $words): void |
|
185 | { |
|
186 | if (array_key_exists(1, $words)) { |
|
187 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
188 | $this->sendUserEvents($account, $user); |
|
189 | } else { |
|
190 | $this->sendError($account, 'User not found'); |
|
191 | } |
|
192 | } else { |
|
193 | $this->sendGlobalEvents($account); |
|
194 | } |
|
@@ 200-204 (lines=5) @@ | ||
197 | private function processSub(Account $account, array $words): void |
|
198 | { |
|
199 | if (array_key_exists(1, $words)) { |
|
200 | if (null !== $user = $this->userRepo->findUserByLogin($words[1])) { |
|
201 | $this->sendUserSubscribers($account, $user); |
|
202 | } else { |
|
203 | $this->sendError($account, 'User not found'); |
|
204 | } |
|
205 | } else { |
|
206 | if ($user = $account->getUser()) { |
|
207 | $this->sendUserSubscribers($account, $user); |