Test Setup Failed
Branch master (5f6c24)
by Maxence
02:25
created
src/ApiBundle/Controller/BreweryController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $breweries = $em  ->getRepository('MaxpouBeerBundle:Brewery')
44 44
                           ->findBy([], ['name' => 'ASC'], $limit, $offset);
45 45
 
46
-        $context = SerializationContext::create()->setGroups(array('Default','list'));
46
+        $context = SerializationContext::create()->setGroups(array('Default', 'list'));
47 47
         $view = $this->view($breweries, 200);
48 48
         $view->setSerializationContext($context);
49 49
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             throw new HttpException(404, 'Unable to find this Brewery entity');
74 74
         }
75 75
 
76
-        $context = SerializationContext::create()->setGroups(array('Default','details'));
76
+        $context = SerializationContext::create()->setGroups(array('Default', 'details'));
77 77
         $view = $this->view($brewery, 200);
78 78
         $view->setSerializationContext($context);
79 79
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $em->flush();
109 109
 
110 110
             $view = $this->view($brewery, 201);
111
-            $context = SerializationContext::create()->setGroups(array('Default','details'));
111
+            $context = SerializationContext::create()->setGroups(array('Default', 'details'));
112 112
             $view->setSerializationContext($context);
113 113
         } else {
114 114
             $view = $this->view($form, 400);
Please login to merge, or discard this patch.