Browse Source

Merge pull request #3295 from OskarStark/doc

formatted code block in batch_actions-receipe
Oskar Stark 9 years ago
parent
commit
11696e0e74
1 changed files with 4 additions and 5 deletions
  1. 4 5
      Resources/doc/reference/batch_actions.rst

+ 4 - 5
Resources/doc/reference/batch_actions.rst

@@ -184,8 +184,7 @@ granularity), the passed query is ``null``.
 
     public function batchActionMerge(ProxyQueryInterface $selectedModelQuery)
     {
-        if (!$this->admin->isGranted('EDIT') || !$this->admin->isGranted('DELETE'))
-        {
+        if (!$this->admin->isGranted('EDIT') || !$this->admin->isGranted('DELETE')) {
             throw new AccessDeniedException();
         }
 
@@ -198,7 +197,7 @@ granularity), the passed query is ``null``.
             $this->addFlash('sonata_flash_info', 'flash_batch_merge_no_target');
 
             return new RedirectResponse(
-              $this->admin->generateUrl('list',$this->admin->getFilterParameters())
+              $this->admin->generateUrl('list', $this->admin->getFilterParameters())
             );
         }
 
@@ -216,14 +215,14 @@ granularity), the passed query is ``null``.
             $this->addFlash('sonata_flash_error', 'flash_batch_merge_error');
 
             return new RedirectResponse(
-              $this->admin->generateUrl('list',$this->admin->getFilterParameters())
+              $this->admin->generateUrl('list', $this->admin->getFilterParameters())
             );
         }
 
         $this->addFlash('sonata_flash_success', 'flash_batch_merge_success');
 
         return new RedirectResponse(
-          $this->admin->generateUrl('list',$this->admin->getFilterParameters())
+          $this->admin->generateUrl('list', $this->admin->getFilterParameters())
         );
     }