| @@ -22,7 +22,7 @@ | ||
| 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 | 
| @@ -22,7 +22,7 @@ | ||
| 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 | 
| @@ -249,9 +249,9 @@ | ||
| 249 | 249 | |
| 250 | 250 |      public function getIndentedName() { | 
| 251 | 251 |          if ($this->parent !== null) { | 
| 252 | - return " >> " . $this->name; | |
| 252 | + return " >> ".$this->name; | |
| 253 | 253 |          } else { | 
| 254 | - return "- " . $this->name; | |
| 254 | + return "- ".$this->name; | |
| 255 | 255 | } | 
| 256 | 256 | } | 
| 257 | 257 | } | 
| @@ -204,11 +204,11 @@ discard block | ||
| 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 | ||
| 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 | /** | 
| @@ -290,7 +290,7 @@ discard block | ||
| 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 | ||
| 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 | } | 
| @@ -41,14 +41,14 @@ | ||
| 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, | 
| @@ -5,7 +5,8 @@ discard block | ||
| 5 | 5 | /** | 
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:16. | 
| 7 | 7 | */ | 
| 8 | -class GroupTypeTest extends \PHPUnit_Framework_TestCase { | |
| 8 | +class GroupTypeTest extends \PHPUnit_Framework_TestCase | |
| 9 | +{ | |
| 9 | 10 | |
| 10 | 11 | /** | 
| 11 | 12 | * @var GroupType | 
| @@ -16,7 +17,8 @@ discard block | ||
| 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 GroupType; | 
| 21 | 23 | } | 
| 22 | 24 | |
| @@ -24,7 +26,8 @@ discard block | ||
| 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 | ||
| 32 | 35 | * @covers AppBundle\Form\Type\GroupType::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 | ||
| 43 | 47 | * @covers AppBundle\Form\Type\GroupType::configureOptions | 
| 44 | 48 | * @todo Implement testConfigureOptions(). | 
| 45 | 49 | */ | 
| 46 | -    public function testConfigureOptions() { | |
| 50 | + public function testConfigureOptions() | |
| 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 | ||
| 54 | 59 | * @covers AppBundle\Form\Type\GroupType::getName | 
| 55 | 60 | * @todo Implement testGetName(). | 
| 56 | 61 | */ | 
| 57 | -    public function testGetName() { | |
| 62 | + public function testGetName() | |
| 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.' | 
| @@ -5,7 +5,8 @@ discard block | ||
| 5 | 5 | /** | 
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:16. | 
| 7 | 7 | */ | 
| 8 | -class UserFilterTypeTest extends \PHPUnit_Framework_TestCase { | |
| 8 | +class UserFilterTypeTest extends \PHPUnit_Framework_TestCase | |
| 9 | +{ | |
| 9 | 10 | |
| 10 | 11 | /** | 
| 11 | 12 | * @var UserFilterType | 
| @@ -16,7 +17,8 @@ discard block | ||
| 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 UserFilterType; | 
| 21 | 23 | } | 
| 22 | 24 | |
| @@ -24,7 +26,8 @@ discard block | ||
| 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 | ||
| 32 | 35 | * @covers AppBundle\Form\Type\UserFilterType::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 | ||
| 43 | 47 | * @covers AppBundle\Form\Type\UserFilterType::configureOptions | 
| 44 | 48 | * @todo Implement testConfigureOptions(). | 
| 45 | 49 | */ | 
| 46 | -    public function testConfigureOptions() { | |
| 50 | + public function testConfigureOptions() | |
| 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 | ||
| 54 | 59 | * @covers AppBundle\Form\Type\UserFilterType::getName | 
| 55 | 60 | * @todo Implement testGetName(). | 
| 56 | 61 | */ | 
| 57 | -    public function testGetName() { | |
| 62 | + public function testGetName() | |
| 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.' | 
| @@ -5,7 +5,8 @@ discard block | ||
| 5 | 5 | /** | 
| 6 | 6 | * Generated by PHPUnit_SkeletonGenerator on 2016-02-15 at 17:17:15. | 
| 7 | 7 | */ | 
| 8 | -class UserTypeTest extends \PHPUnit_Framework_TestCase { | |
| 8 | +class UserTypeTest extends \PHPUnit_Framework_TestCase | |
| 9 | +{ | |
| 9 | 10 | |
| 10 | 11 | /** | 
| 11 | 12 | * @var UserType | 
| @@ -16,7 +17,8 @@ discard block | ||
| 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 UserType; | 
| 21 | 23 | } | 
| 22 | 24 | |
| @@ -24,7 +26,8 @@ discard block | ||
| 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 | ||
| 32 | 35 | * @covers AppBundle\Form\Type\UserType::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 | ||
| 43 | 47 | * @covers AppBundle\Form\Type\UserType::configureOptions | 
| 44 | 48 | * @todo Implement testConfigureOptions(). | 
| 45 | 49 | */ | 
| 46 | -    public function testConfigureOptions() { | |
| 50 | + public function testConfigureOptions() | |
| 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 | ||
| 54 | 59 | * @covers AppBundle\Form\Type\UserType::getName | 
| 55 | 60 | * @todo Implement testGetName(). | 
| 56 | 61 | */ | 
| 57 | -    public function testGetName() { | |
| 62 | + public function testGetName() | |
| 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.' |