Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rabaix committed Apr 23, 2012
1 parent c54d953 commit 429071f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 4 additions & 13 deletions Admin/BaseMediaAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ protected function configureFormFields(FormMapper $formMapper)
}
}

/**
* @param \Sonata\AdminBundle\Show\ShowMapper $filter
* @return void
*/
protected function configureShowField(ShowMapper $filter)
{
// TODO: Implement configureShowField() method.
}

/**
* @param \Sonata\AdminBundle\Route\RouteCollection $collection
* @return void
Expand All @@ -118,18 +109,18 @@ public function getPersistentParameters()
if (!$this->hasRequest()) {
return array();
}

$context = $this->getRequest()->get('context', $this->pool->getDefaultContext());
$providers = $this->pool->getProvidersByContext($context);
$provider = $this->getRequest()->get('provider');

// if the context has only one provider, set it into the request
// so the intermediate provider selection is skipped
// so the intermediate provider selection is skipped
if (count($providers) == 1 && null === $provider) {
$provider = array_shift($providers)->getName();
$this->getRequest()->query->set('provider', $provider);
}

return array(
'provider' => $provider,
'context' => $context,
Expand Down
2 changes: 1 addition & 1 deletion Controller/GalleryAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class GalleryAdminController extends Controller
{
/**
* @param $view
* @param string $view
* @param array $parameters
* @param null|\Symfony\Component\HttpFoundation\Response $response
* @return \Symfony\Bundle\FrameworkBundle\Controller\Response
Expand Down

0 comments on commit 429071f

Please sign in to comment.