Completed
Push — master ( a3b5f9...3352e6 )
by Laurent
03:26
created
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/Entity/Article.php 1 patch
Unused Use Statements   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
  */
16 16
 namespace AppBundle\Entity;
17 17
 
18
-use Doctrine\ORM\Mapping as ORM;
19
-use Symfony\Component\Validator\Constraints as Assert;
20
-use Gedmo\Mapping\Annotation as Gedmo;
21
-use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
22
-use Doctrine\Common\Collections\ArrayCollection;
18
+use AppBundle\Entity\FamilyLog;
23 19
 use AppBundle\Entity\Supplier;
24 20
 use AppBundle\Entity\UnitStorage;
25 21
 use AppBundle\Entity\ZoneStorage;
26
-use AppBundle\Entity\FamilyLog;
22
+use Doctrine\Common\Collections\ArrayCollection;
23
+use Doctrine\ORM\Mapping as ORM;
24
+use Gedmo\Mapping\Annotation as Gedmo;
25
+use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
26
+use Symfony\Component\Validator\Constraints as Assert;
27 27
 
28 28
 /**
29 29
  * Article.
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.
src/AppBundle/Entity/User.php 1 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 FOS\UserBundle\Model\User as BaseUser;
18
-use Doctrine\ORM\Mapping as ORM;
19 17
 use Doctrine\Common\Collections\ArrayCollection;
18
+use Doctrine\ORM\Mapping as ORM;
19
+use FOS\UserBundle\Model\User as BaseUser;
20 20
 use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
21 21
  
22 22
 /**
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/ArticleReassignType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@
 block discarded – undo
41 41
     {
42 42
         $builder->addEventListener(
43 43
             FormEvents::PRE_SET_DATA,
44
-            function (FormEvent $event) {
44
+            function(FormEvent $event) {
45 45
                 $form = $event->getForm();
46 46
                 $articles = $event->getData();
47 47
 
48 48
                 $formOptions = array(
49 49
                     'class' => 'GlsrGestockBundle:Supplier',
50 50
                     'query_builder' =>
51
-                    function (EntityRepository $er) use ($articles) {
51
+                    function(EntityRepository $er) use ($articles) {
52 52
                         return $er->getSupplierForReassign($articles[0]);
53 53
                     },
54 54
                     'multiple' => false,
Please login to merge, or discard this patch.
src/AppBundle/Tests/Form/RegistrationTypeTest.php 1 patch
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@  discard block
 block discarded – undo
5 5
 /**
6 6
  * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:17.
7 7
  */
8
-class RegistrationTypeTest extends \PHPUnit_Framework_TestCase {
8
+class RegistrationTypeTest extends \PHPUnit_Framework_TestCase
9
+{
9 10
 
10 11
     /**
11 12
      * @var RegistrationType
@@ -16,7 +17,8 @@  discard block
 block discarded – undo
16 17
      * Sets up the fixture, for example, opens a network connection.
17 18
      * This method is called before a test is executed.
18 19
      */
19
-    protected function setUp() {
20
+    protected function setUp()
21
+    {
20 22
         $this->object = new RegistrationType;
21 23
     }
22 24
 
@@ -24,7 +26,8 @@  discard block
 block discarded – undo
24 26
      * Tears down the fixture, for example, closes a network connection.
25 27
      * This method is called after a test is executed.
26 28
      */
27
-    protected function tearDown() {
29
+    protected function tearDown()
30
+    {
28 31
         
29 32
     }
30 33
 
@@ -32,7 +35,8 @@  discard block
 block discarded – undo
32 35
      * @covers AppBundle\Form\RegistrationType::buildForm
33 36
      * @todo   Implement testBuildForm().
34 37
      */
35
-    public function testBuildForm() {
38
+    public function testBuildForm()
39
+    {
36 40
         // Remove the following lines when you implement this test.
37 41
         $this->markTestIncomplete(
38 42
             'This test has not been implemented yet.'
@@ -43,7 +47,8 @@  discard block
 block discarded – undo
43 47
      * @covers AppBundle\Form\RegistrationType::getParent
44 48
      * @todo   Implement testGetParent().
45 49
      */
46
-    public function testGetParent() {
50
+    public function testGetParent()
51
+    {
47 52
         // Remove the following lines when you implement this test.
48 53
         $this->markTestIncomplete(
49 54
             'This test has not been implemented yet.'
@@ -54,7 +59,8 @@  discard block
 block discarded – undo
54 59
      * @covers AppBundle\Form\RegistrationType::getBlockPrefix
55 60
      * @todo   Implement testGetBlockPrefix().
56 61
      */
57
-    public function testGetBlockPrefix() {
62
+    public function testGetBlockPrefix()
63
+    {
58 64
         // Remove the following lines when you implement this test.
59 65
         $this->markTestIncomplete(
60 66
             'This test has not been implemented yet.'
@@ -65,7 +71,8 @@  discard block
 block discarded – undo
65 71
      * @covers AppBundle\Form\RegistrationType::getName
66 72
      * @todo   Implement testGetName().
67 73
      */
68
-    public function testGetName() {
74
+    public function testGetName()
75
+    {
69 76
         // Remove the following lines when you implement this test.
70 77
         $this->markTestIncomplete(
71 78
             'This test has not been implemented yet.'
Please login to merge, or discard this patch.