| @@ -173,7 +173,7 @@ | ||
| 173 | 173 | $ext = $matches[2]; | 
| 174 | 174 | |
| 175 | 175 |          return $this->hashPart('<a href="'.$url.'" class="post-image ' | 
| 176 | -            .('gif' === $ext ? ' img-gif':'').'"><img src="'.$url.'" class="img-thumbnail" alt="Inline image"></a>'); | |
| 176 | +            .('gif' === $ext ? ' img-gif' : '').'"><img src="'.$url.'" class="img-thumbnail" alt="Inline image"></a>'); | |
| 177 | 177 | } | 
| 178 | 178 | |
| 179 | 179 | protected function doAnchorsPointUsernameCallback($matches) | 
| @@ -96,13 +96,13 @@ | ||
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 |              if (OutputInterface::VERBOSITY_VERBOSE === $output->getVerbosity()) { | 
| 99 | -                $output->writeln('@' . $row[1] . ' added'); | |
| 99 | +                $output->writeln('@'.$row[1].' added'); | |
| 100 | 100 | } | 
| 101 | 101 | |
| 102 | 102 | $count++; | 
| 103 | 103 | } | 
| 104 | 104 | |
| 105 | - $output->writeln($count . ' users imported.'); | |
| 105 | + $output->writeln($count.' users imported.'); | |
| 106 | 106 | |
| 107 | 107 | return 0; | 
| 108 | 108 | } | 
| @@ -101,7 +101,7 @@ | ||
| 101 | 101 |      { | 
| 102 | 102 |          $qb = $this->createQueryBuilder('se'); | 
| 103 | 103 | |
| 104 | - $rows = $qb | |
| 104 | + $rows = $qb | |
| 105 | 105 | ->select([ | 
| 106 | 106 | 'NEW Skobkin\Bundle\PointToolsBundle\DTO\DailyEvents(DAY(se.date), COUNT(se))', | 
| 107 | 107 | 'DAY(se.date) as day', | 
| @@ -77,6 +77,7 @@ discard block | ||
| 77 | 77 | |
| 78 | 78 | /** | 
| 79 | 79 | * Make GET request and return response body | 
| 80 | + * @param string $path | |
| 80 | 81 | */ | 
| 81 | 82 | public function getGetResponseBody($path, array $parameters = []): StreamInterface | 
| 82 | 83 |      { | 
| @@ -95,7 +96,7 @@ discard block | ||
| 95 | 96 | * @param string $path Request path | 
| 96 | 97 | * @param array $parameters Key => Value array of query parameters | 
| 97 | 98 | * | 
| 98 | - * @return ResponseInterface | |
| 99 | + * @return \Psr\Http\Message\ResponseInterface | |
| 99 | 100 | * | 
| 100 | 101 | * @throws NetworkException | 
| 101 | 102 | */ | 
| @@ -110,7 +111,7 @@ discard block | ||
| 110 | 111 | * @param string $path Request path | 
| 111 | 112 | * @param array $parameters Key => Value array of request data | 
| 112 | 113 | * | 
| 113 | - * @return ResponseInterface | |
| 114 | + * @return \Psr\Http\Message\ResponseInterface | |
| 114 | 115 | * | 
| 115 | 116 | * @throws NetworkException | 
| 116 | 117 | */ | 
| @@ -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( |