@@ -116,8 +116,8 @@ |
||
| 116 | 116 | |
| 117 | 117 | // Updating users subscribers |
| 118 | 118 | foreach ($usersForUpdate as $user) { |
| 119 | - $output->writeln(' Processing @' . $user->getLogin()); |
|
| 120 | - $log->info('Processing @' . $user->getLogin()); |
|
| 119 | + $output->writeln(' Processing @'.$user->getLogin()); |
|
| 120 | + $log->info('Processing @'.$user->getLogin()); |
|
| 121 | 121 | |
| 122 | 122 | try { |
| 123 | 123 | $userCurrentSubscribers = $api->getUserSubscribersById($user->getId()); |
@@ -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) |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $user = $em->getRepository('SkobkinPointToolsBundle:User')->findUserByLogin($login); |
| 25 | 25 | |
| 26 | 26 | if (!$user) { |
| 27 | - throw $this->createNotFoundException('User ' . $login . ' not found.'); |
|
| 27 | + throw $this->createNotFoundException('User '.$login.' not found.'); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $paginator = $this->get('knp_paginator'); |
@@ -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 | } |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * @param array $parameters Parameters array used to fill path template |
| 117 | 117 | * @param bool $decodeJsonResponse Decode JSON or return plaintext |
| 118 | 118 | * @param bool $decodeJsonToObjects Decode JSON objects to PHP objects instead of arrays |
| 119 | - * @return mixed |
|
| 119 | + * @return string |
|
| 120 | 120 | */ |
| 121 | 121 | public function getPostRequestData($path, array $parameters = [], $decodeJsonResponse = false, $decodeJsonToObjects = false) |
| 122 | 122 | { |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | bool $disableNotifications = false |
| 96 | 96 | ): bool { |
| 97 | 97 | $sendMessage = new SendMessage(); |
| 98 | - $sendMessage->chat_id = (string)$chatId; |
|
| 98 | + $sendMessage->chat_id = (string) $chatId; |
|
| 99 | 99 | $sendMessage->text = $text; |
| 100 | 100 | $sendMessage->parse_mode = $parseMode; |
| 101 | 101 | $sendMessage->disable_web_page_preview = $disableWebPreview; |