Passed
Pull Request — master (#1)
by
unknown
02:21
created
src/Controller/API/HookController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -4,14 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use App\Entity\Guild;
6 6
 use App\Entity\Setting;
7
-use App\Handler\ApiHandler;
8
-use App\Utils\AbstractCrawler;
9 7
 use App\Utils\CharacterCrawler;
10 8
 use App\Utils\GuildCrawler;
11 9
 use FOS\RestBundle\Controller\FOSRestController;
12 10
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
13
-use Nelmio\ApiDocBundle\Annotation\Model;
14
-use Swagger\Annotations as SWG;
15 11
 use Symfony\Component\HttpFoundation\JsonResponse;
16 12
 
17 13
 /**
Please login to merge, or discard this patch.
src/Entity/Character.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
     /**
216 216
      * Get tags.
217 217
      *
218
-     * @return array
218
+     * @return string
219 219
      */
220 220
     public function getTags()
221 221
     {
Please login to merge, or discard this patch.
src/Handler/ApiHandler.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      * @param $data
92 92
      * @param array $groups
93 93
      *
94
-     * @return static
94
+     * @return View
95 95
      */
96 96
     public function createView($data, array $groups)
97 97
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Handler;
4 4
 
5
-use App\Entity\Product;
6 5
 use Doctrine\ORM\EntityManagerInterface;
7 6
 use Doctrine\ORM\QueryBuilder;
8 7
 use FOS\RestBundle\View\View;
Please login to merge, or discard this patch.
src/Handler/CharacterHandler.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -2,15 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Handler;
4 4
 
5
-use App\Entity\Product;
6
-use Doctrine\ORM\EntityManagerInterface;
7 5
 use Doctrine\ORM\QueryBuilder;
8
-use FOS\RestBundle\View\View;
9
-use FOS\RestBundle\View\ViewHandlerInterface;
10
-use Pagerfanta\Pagerfanta;
11
-use Symfony\Component\HttpFoundation\Request;
12
-use Pagerfanta\Adapter\DoctrineORMAdapter;
13
-use Symfony\Component\HttpFoundation\RequestStack;
14 6
 
15 7
 /**
16 8
  * Class ApiHandler
Please login to merge, or discard this patch.
src/Utils/AbstractCrawler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Utils;
4 4
 
5
-use App\Entity\Guild;
6 5
 use App\Entity\Setting;
7 6
 use Doctrine\ORM\EntityManagerInterface;
8 7
 use Symfony\Component\DomCrawler\Crawler;
Please login to merge, or discard this patch.
src/Utils/CharacterCrawler.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-     * @param Guild $guild
35
-     * @param array $domList
34
+     * @param Crawler $dom
36 35
      */
37 36
     private function fetchCharacters( $dom): void
38 37
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
 use App\Entity\Character;
6 6
 use App\Entity\Guild;
7 7
 use App\Entity\Setting;
8
-use App\Entity\User;
9 8
 use App\Factory\CharacterFactory;
10
-use App\Factory\UserFactory;
11 9
 use Symfony\Component\DomCrawler\Crawler;
12 10
 
13 11
 /**
Please login to merge, or discard this patch.
src/Utils/GuildCrawler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * @param Guild $guild
53
-     * @param $usersList
53
+     * @param Crawler $usersList
54 54
      * @param $matchCode
55 55
      */
56 56
     private function fetchUsers(Guild $guild, $usersList): void
Please login to merge, or discard this patch.