Completed
Push — master ( d5b46d...5f63e3 )
by Laurent
03:34
created
src/AppBundle/Form/Type/UserFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 'class' => 'AppBundle\Entity\Group',
23 23
                 'expanded' => true,
24 24
                 'multiple' => true,
25
-                'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
25
+                'apply_filter' => function(QueryInterface $filterQuery, $field, $values) {
26 26
                     $query = $filterQuery->getQueryBuilder();
27 27
                     $query->leftJoin($field, 'm');
28 28
                     // Filter results using orWhere matching ID
Please login to merge, or discard this patch.
src/AppBundle/Menu/RequestVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         if ($item->getUri() === $request->getRequestUri()) {
23 23
             // URL's completely match
24 24
             return true;
25
-        } elseif ($item->getUri() !== $request->getBaseUrl() . '/' &&
25
+        } elseif ($item->getUri() !== $request->getBaseUrl().'/' &&
26 26
             substr($request->getRequestUri(), 0, strlen($item->getUri()))
27 27
             === $item->getUri()) {
28 28
             // URL isn't just "/" and the first part of the URL match
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
@@ -204,11 +204,11 @@  discard block
 block discarded – undo
204 204
         $url = $this->generateUrl($route ?: $name, is_null($params) ? array() : $params);
205 205
         if (isset($request)) {
206 206
             if ($request->query->has('submit-filter') && $form->handleRequest($request)->isValid()) {
207
-                $request->getSession()->set('filter.' . $name, $request->query->get($form->getName()));
207
+                $request->getSession()->set('filter.'.$name, $request->query->get($form->getName()));
208 208
 
209 209
                 return $this->redirect($url);
210 210
             } elseif ($request->query->has('reset-filter')) {
211
-                $request->getSession()->set('filter.' . $name, null);
211
+                $request->getSession()->set('filter.'.$name, null);
212 212
 
213 213
                 return $this->redirect($url);
214 214
             }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     protected function getFilter($name)
246 246
     {
247
-        return $this->getRequest()->getSession()->get('filter.' . $name);
247
+        return $this->getRequest()->getSession()->get('filter.'.$name);
248 248
     }
249 249
 
250 250
     /**
Please login to merge, or discard this patch.
src/AppBundle/Controller/InventoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function printAction(Inventory $inventory)
292 292
     {
293
-        $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf';
293
+        $file = $inventory->getDate()->format('Ymd').'-inventory.pdf';
294 294
         // Créer et enregistrer le fichier PDF à imprimer
295 295
         $html = $this->renderView(
296 296
             'AppBundle:Inventory:print.pdf.twig',
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
             200,
308 308
             array(
309 309
                 'Content-Type' => 'application/pdf',
310
-                'Content-Disposition' => 'attachment; filename="' . $file . '"'
310
+                'Content-Disposition' => 'attachment; filename="'.$file.'"'
311 311
             )
312 312
         );
313 313
     }
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/Form/Type/FamilyLogType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/SupplierType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
         $session = $this->getRequest()->getSession();
229 229
 
230
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
230
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
231 231
     }
232 232
 
233 233
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     {
241 241
         $alias = current($qbd->getDQLPart('from'))->getAlias();
242 242
         if (is_array($order = $this->getOrder($name))) {
243
-            $qbd->orderBy($alias . '.' . $order['field'], $order['type']);
243
+            $qbd->orderBy($alias.'.'.$order['field'], $order['type']);
244 244
         }
245 245
     }
246 246
 
Please login to merge, or discard this patch.