Completed
Push — master ( 4b984d...a3b5f9 )
by Laurent
03:33
created
src/AppBundle/Controller/AbstractController.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller;
16 16
 
17
-use Symfony\Bundle\FrameworkBundle\Controller\Controller;
18 17
 use Doctrine\ORM\QueryBuilder;
18
+use Symfony\Bundle\FrameworkBundle\Controller\Controller;
19 19
 
20 20
 /**
21 21
  * Abstract controller
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $session = $this->getRequest()->getSession();
49 49
 
50
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
50
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
51 51
     }
52 52
 
53 53
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $alias = current($qb->getDQLPart('from'))->getAlias();
62 62
         if (is_array($order = $this->getOrder($name))) {
63
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
63
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/ArticleController.php 1 patch
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller;
16 16
 
17
-use Symfony\Component\HttpFoundation\Request;
18 17
 use AppBundle\Controller\AbstractController;
19
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
20
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
21
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22 18
 use AppBundle\Entity\Article;
23 19
 use AppBundle\Entity\Supplier;
24
-use AppBundle\Form\Type\ArticleType;
25 20
 use AppBundle\Form\Type\ArticleReassignType;
21
+use AppBundle\Form\Type\ArticleType;
22
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
23
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
24
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
25
+use Symfony\Component\HttpFoundation\Request;
26 26
 
27 27
 /**
28 28
  * Article controller.
Please login to merge, or discard this patch.
src/AppBundle/Controller/DefaultController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller;
16 16
 
17
-use Symfony\Bundle\FrameworkBundle\Controller\Controller;
18
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
19 17
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
18
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
20 19
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
20
+use Symfony\Bundle\FrameworkBundle\Controller\Controller;
21 21
 use Symfony\Component\HttpFoundation\Response;
22 22
 
23 23
 /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/Settings/Divers/TvaController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller\Settings\Divers;
16 16
 
17
-use Symfony\Component\HttpFoundation\Request;
18 17
 use AppBundle\Controller\AbstractController;
18
+use AppBundle\Entity\Tva;
19
+use AppBundle\Form\Type\TvaType;
19 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
20 21
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
21 22
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22
-use AppBundle\Entity\Tva;
23
-use AppBundle\Form\Type\TvaType;
23
+use Symfony\Component\HttpFoundation\Request;
24 24
 
25 25
 /**
26 26
  * Tva controller.
Please login to merge, or discard this patch.
src/AppBundle/Controller/Settings/Divers/UnitStorageController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller\Settings\Divers;
16 16
 
17
-use Symfony\Component\HttpFoundation\Request;
18 17
 use AppBundle\Controller\AbstractController;
18
+use AppBundle\Entity\UnitStorage;
19
+use AppBundle\Form\Type\UnitStorageType;
19 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
20 21
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
21 22
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22
-use AppBundle\Entity\UnitStorage;
23
-use AppBundle\Form\Type\UnitStorageType;
23
+use Symfony\Component\HttpFoundation\Request;
24 24
 
25 25
 /**
26 26
  * UnitStorage controller.
Please login to merge, or discard this patch.
src/AppBundle/Controller/Settings/Divers/ZoneStorageController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Controller\Settings\Divers;
16 16
 
17
-use Symfony\Component\HttpFoundation\Request;
18 17
 use AppBundle\Controller\AbstractController;
18
+use AppBundle\Entity\ZoneStorage;
19
+use AppBundle\Form\Type\ZoneStorageType;
19 20
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
20 21
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
21 22
 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
22
-use AppBundle\Entity\ZoneStorage;
23
-use AppBundle\Form\Type\ZoneStorageType;
23
+use Symfony\Component\HttpFoundation\Request;
24 24
 
25 25
 /**
26 26
  * ZoneStorage controller.
Please login to merge, or discard this patch.
src/AppBundle/Entity/Group.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Entity;
16 16
 
17
-use FOS\UserBundle\Model\Group as BaseGroup;
18 17
 use Doctrine\ORM\Mapping as ORM;
18
+use FOS\UserBundle\Model\Group as BaseGroup;
19 19
 
20 20
 /**
21 21
  * Entité Group.
Please login to merge, or discard this patch.
src/AppBundle/Entity/Inventory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
     /**
153 153
      * Get amount
154 154
      *
155
-     * @return string
155
+     * @return double
156 156
      */
157 157
     public function getAmount()
158 158
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
  */
15 15
 namespace AppBundle\Entity;
16 16
 
17
-use Doctrine\ORM\Mapping as ORM;
18
-use Doctrine\Common\Collections\ArrayCollection;
19 17
 use AppBundle\Entity\InventoryArticles;
18
+use Doctrine\Common\Collections\ArrayCollection;
19
+use Doctrine\ORM\Mapping as ORM;
20 20
 
21 21
 /**
22 22
  * Inventory
Please login to merge, or discard this patch.
src/AppBundle/Entity/InventoryArticlesRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace AppBundle\Entity;
4 4
 
5
-use Doctrine\ORM\EntityRepository;
6 5
 use AppBundle\Entity\Inventory;
6
+use Doctrine\ORM\EntityRepository;
7 7
 
8 8
 /**
9 9
  * InventoryArticlesRepository
Please login to merge, or discard this patch.