@@ -91,12 +91,12 @@ |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | if ($output->isVerbose()) { |
| 94 | - $output->writeln('@' . $row[1] . ' added'); |
|
| 94 | + $output->writeln('@'.$row[1].' added'); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | $count++; |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - $output->writeln($count . ' users imported.'); |
|
| 100 | + $output->writeln($count.' users imported.'); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | \ No newline at end of file |
@@ -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()); |
@@ -156,11 +156,11 @@ |
||
| 156 | 156 | { |
| 157 | 157 | // Overriding protocol |
| 158 | 158 | if (!$useProtocol) { |
| 159 | - $baseUrl = str_replace(['http://', 'https://',], ($this->useHttps) ? 'https://' : 'http://', $baseUrl); |
|
| 159 | + $baseUrl = str_replace(['http://', 'https://', ], ($this->useHttps) ? 'https://' : 'http://', $baseUrl); |
|
| 160 | 160 | } |
| 161 | 161 | // Adding missing protocol |
| 162 | 162 | if ((false === strpos(strtolower($baseUrl), 'http://')) && (false === strpos(strtolower($baseUrl), 'https://'))) { |
| 163 | - $baseUrl = (($this->useHttps) ? 'https://' : 'http://') . $baseUrl; |
|
| 163 | + $baseUrl = (($this->useHttps) ? 'https://' : 'http://').$baseUrl; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | $this->client->setBaseUrl($baseUrl); |
@@ -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'); |