Test Failed
Push — master ( b41ef9...997f41 )
by Alexey
03:33
created
src/Skobkin/Bundle/PointToolsBundle/Service/Factory/Blogs/FileFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param $url
63
+     * @param string $url
64 64
      *
65 65
      * @return File
66 66
      * @throws InvalidResponseException
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Service/Factory/Blogs/TagFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param $text
63
+     * @param string $text
64 64
      *
65 65
      * @return Tag
66 66
      * @throws InvalidResponseException
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Service/Factory/UserFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
     }
113 113
 
114 114
     /**
115
-     * @param array $data
115
+     * @param UserDTO $data
116 116
      *
117 117
      * @throws InvalidResponseException
118 118
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs;
4 4
 
5 5
 use Doctrine\ORM\EntityManager;
6
-use Doctrine\ORM\EntityManagerInterface;
7 6
 use Doctrine\ORM\EntityRepository;
8 7
 use Psr\Log\LoggerInterface;
9 8
 use Skobkin\Bundle\PointToolsBundle\Entity\Blogs\File;
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Service/Markdown/PointParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Controller/UserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Command/ImportUsersCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,13 +96,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Service/UserApi.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
     /**
308 308
      * Creates URL of avatar with specified size by login string
309 309
      *
310
-     * @param $login
310
+     * @param string $login
311 311
      * @param $size
312 312
      *
313 313
      * @return string
Please login to merge, or discard this patch.
src/Skobkin/Bundle/PointToolsBundle/Service/AbstractApi.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function sendPostRequest($path, array $parameters = [])
81 81
     {
82 82
         // Cleaning POST parameters from potential @file injections
83
-        array_walk($parameters, function (string &$value, string $key) {
83
+        array_walk($parameters, function(string & $value, string $key) {
84 84
             str_replace('@', '', $value);
85 85
         });
86 86
 
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
     {
160 160
         // Overriding protocol
161 161
         if (!$useProtocol) {
162
-            $baseUrl = str_replace(['http://', 'https://',], ($this->useHttps) ? 'https://' : 'http://', $baseUrl);
162
+            $baseUrl = str_replace(['http://', 'https://', ], ($this->useHttps) ? 'https://' : 'http://', $baseUrl);
163 163
         }
164 164
         // Adding missing protocol
165 165
         if ((false === strpos(strtolower($baseUrl), 'http://')) && (false === strpos(strtolower($baseUrl), 'https://'))) {
166
-            $baseUrl = (($this->useHttps) ? 'https://' : 'http://') . $baseUrl;
166
+            $baseUrl = (($this->useHttps) ? 'https://' : 'http://').$baseUrl;
167 167
         }
168 168
 
169 169
         $this->client->setBaseUrl($baseUrl);
Please login to merge, or discard this patch.