Completed
Push — master ( e79cb7...4be90b )
by Laurent
04:11
created
src/AppBundle/Form/Type/ArticleType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 'entity',
86 86
                 array(
87 87
                     'class' => 'AppBundle:Supplier',
88
-                    'query_builder' => function (EntityRepository $er) {
88
+                    'query_builder' => function(EntityRepository $er) {
89 89
                         return $er->createQueryBuilder('s')
90 90
                             ->where('s.active = 1');
91 91
                     },
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 'entity',
127 127
                 array(
128 128
                     'class' => 'AppBundle:FamilyLog',
129
-                    'query_builder' => function (EntityRepository $er) {
129
+                    'query_builder' => function(EntityRepository $er) {
130 130
                         return $er->createQueryBuilder('f')
131 131
                             ->orderBy('f.path', 'ASC');
132 132
                     },
Please login to merge, or discard this patch.
src/AppBundle/Tests/Controller/InventoryControllerTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@
 block discarded – undo
69 69
         );
70 70
     }
71 71
 
72
-    public function testIndex() {
72
+    public function testIndex()
73
+    {
73 74
         $client = static::createClient();
74 75
 
75 76
         $crawler = $client->request('GET', '/');
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractInventoryController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $typeClass,
49 49
             $inventory,
50 50
             ['action' => $this->generateUrl('inventory_update', ['id' => $inventory->getId()]),
51
-            'method' => 'PUT',]
51
+            'method' => 'PUT', ]
52 52
         );
53 53
         $deleteForm = $this->createDeleteForm($inventory->getId(), 'inventory_delete');
54 54
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'inventory' => $inventory,
57 57
             'zoneStorages' => $zoneStorages,
58 58
             'edit_form'   => $editForm->createView(),
59
-            'delete_form' => $deleteForm->createView(),];
59
+            'delete_form' => $deleteForm->createView(), ];
60 60
         return $return;
61 61
     }
62 62
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         return $this->createForm(
73 73
             InventoryType::class,
74 74
             $inventory,
75
-            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT',]
75
+            ['attr' => ['id' => 'create'], 'action' => $this->generateUrl($route), 'method' => 'PUT', ]
76 76
         );
77 77
     }
78 78
     
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/InventoryArticlesType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                     'label' => 'gestock.id',
45 45
                     'translation_domain' => 'messages',
46 46
                     'empty_data' => null,
47
-                    'attr'=> ['class' => 'form-control', 'readonly' => true,],
47
+                    'attr'=> ['class' => 'form-control', 'readonly' => true, ],
48 48
                 )
49 49
             )
50 50
             ->add(
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     'empty_data' => '0,000',
81 81
                     'label' => 'seizure.realstock',
82 82
                     'translation_domain' => 'gs_inventories',
83
-                    'attr'=> ['class' => 'inventory form-control',]
83
+                    'attr'=> ['class' => 'inventory form-control', ]
84 84
                 )
85 85
             )
86 86
             ->add(
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/InventoryEditZonesType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         parent::buildForm($builder, $options);
38 38
         $builder
39 39
             ->remove('articles')
40
-            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesZonesType::class,]);
40
+            ->add('articles', CollectionType::class, ['entry_type' => InventoryArticlesZonesType::class, ]);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $group = new Group();
102 102
         $form = $this->createForm(GroupType::class, $group);
103 103
         $this->addRoles($form, $group);
104
-        $return = ['group' => $group, 'form' => $form->createView(),];
104
+        $return = ['group' => $group, 'form' => $form->createView(), ];
105 105
 
106 106
         if ($form->handleRequest($request)->isValid()) {
107 107
             $etm = $this->getDoctrine()->getManager();
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function buildForm(FormBuilderInterface $builder, array $options)
38 38
     {
39 39
         $this->roles = $options['roles'];
40
-        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'],])
40
+        $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr'  => ['class' => 'form-control'], ])
41 41
             ->add('email', EmailType::class, array(
42 42
                 'required' => false,
43 43
                 'label' => 'E-mail',
Please login to merge, or discard this patch.
src/AppBundle/Controller/UserController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
     public function createAction(Request $request)
100 100
     {
101 101
         $user = new User();
102
-        $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'),]);
102
+        $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'), ]);
103 103
         $form->handleRequest($request);
104
-        $return = ['user' => $user, 'form'   => $form->createView(),];
104
+        $return = ['user' => $user, 'form'   => $form->createView(), ];
105 105
 
106 106
         if ($form->isValid()) {
107 107
             $user->setEnabled(true);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $return = ['user' => $user,
166 166
             'edit_form' => $editForm->createView(),
167
-            'delete_form' => $deleteForm->createView(),];
167
+            'delete_form' => $deleteForm->createView(), ];
168 168
 
169 169
         if ($editForm->handleRequest($request)->isValid()) {
170 170
             foreach ($user->getGroups() as $key => $group) {
Please login to merge, or discard this patch.
src/AppBundle/Controller/ArticleController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
      *
190 190
      * @param \Symfony\Component\HttpFoundation\Request $request  Form request
191 191
      * @param \AppBundle\Entity\Supplier                $supplier Supplier to desactivate
192
-     * @return array
192
+     * @return \Symfony\Component\HttpFoundation\RedirectResponse
193 193
      */
194 194
     public function changeAction(Request $request, Supplier $supplier)
195 195
     {
Please login to merge, or discard this patch.