@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * @param Input $input |
39 | 39 | * @param Output $output |
40 | - * @return bool |
|
40 | + * @return false|null |
|
41 | 41 | */ |
42 | 42 | protected function execute(InputInterface $input, OutputInterface $output) |
43 | 43 | { |
@@ -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()); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Skobkin\Bundle\PointToolsBundle\Controller; |
4 | 4 | |
5 | 5 | use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\Post; |
6 | -use Skobkin\Bundle\PointToolsBundle\Service\UserApi; |
|
7 | 6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
9 | 8 | use Symfony\Component\HttpFoundation\Response; |
@@ -370,7 +370,7 @@ |
||
370 | 370 | /** |
371 | 371 | * Get children |
372 | 372 | * |
373 | - * @return ArrayCollection |
|
373 | + * @return Comment[] |
|
374 | 374 | */ |
375 | 375 | public function getChildren() |
376 | 376 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param $url |
|
63 | + * @param string $url |
|
64 | 64 | * |
65 | 65 | * @return File |
66 | 66 | * @throws InvalidResponseException |
@@ -71,7 +71,6 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Creates posts and return status of new insertions |
73 | 73 | * |
74 | - * @param PostsPage $data |
|
75 | 74 | * |
76 | 75 | * @return bool |
77 | 76 | * @throws ApiException |
@@ -182,7 +181,6 @@ discard block |
||
182 | 181 | |
183 | 182 | /** |
184 | 183 | * @param Post $post |
185 | - * @param Tag[] $tags |
|
186 | 184 | */ |
187 | 185 | private function updatePostTags(Post $post, array $tagsStrings) |
188 | 186 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param $text |
|
63 | + * @param string $text |
|
64 | 64 | * |
65 | 65 | * @return Tag |
66 | 66 | * @throws InvalidResponseException |
@@ -112,7 +112,7 @@ |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * @param array $data |
|
115 | + * @param UserDTO $data |
|
116 | 116 | * |
117 | 117 | * @throws InvalidResponseException |
118 | 118 | */ |
@@ -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 |
@@ -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); |