Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix CS

  • Loading branch information...
commit 4c9bff8a46c524f2e9247b569c49714f3334a97c 1 parent df2df50
@rande rande authored
Showing with 161 additions and 183 deletions.
  1. +4 −4 Admin/Admin.php
  2. +1 −1  Admin/AdminExtensionInterface.php
  3. +2 −2 Admin/AdminHelper.php
  4. +12 −12 Admin/AdminInterface.php
  5. +3 −3 Admin/FieldDescriptionInterface.php
  6. +3 −3 Admin/Pool.php
  7. +1 −1  Block/AdminListBlockService.php
  8. +1 −1  Builder/DatagridBuilderInterface.php
  9. +28 −16 Controller/CRUDController.php
  10. +21 −15 Datagrid/Datagrid.php
  11. +6 −25 Datagrid/DatagridInterface.php
  12. +5 −5 Datagrid/DatagridMapper.php
  13. +1 −2  Datagrid/Pager.php
  14. +8 −9 Datagrid/ProxyQueryInterface.php
  15. +2 −2 Export/Exporter.php
  16. +2 −2 Filter/Filter.php
  17. +6 −6 Filter/FilterInterface.php
  18. +1 −1  Form/EventListener/ResizeFormListener.php
  19. +1 −1  Form/Type/Filter/NumberType.php
  20. +2 −2 Guesser/TypeGuesserInterface.php
  21. +4 −4 Model/AuditManager.php
  22. +4 −4 Model/AuditManagerInterface.php
  23. +10 −18 Model/AuditReaderInterface.php
  24. +2 −2 Model/ModelManagerInterface.php
  25. +3 −3 Route/DefaultRouteGenerator.php
  26. +1 −1  Route/RouteCollection.php
  27. +5 −5 Route/RouteGeneratorInterface.php
  28. +5 −14 Security/Handler/SecurityHandlerInterface.php
  29. +9 −9 Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php
  30. +3 −5 Translator/LabelTranslatorStrategyInterface.php
  31. +1 −1  Util/AdminAclManipulator.php
  32. +4 −4 Validator/ErrorElement.php
View
8 Admin/Admin.php
@@ -933,7 +933,7 @@ public function getRoute($name)
}
/**
- * @param $name
+ * @param string $name
*
* @return bool
*/
@@ -948,11 +948,11 @@ public function hasRoute($name)
/**
* Generates the object url with the given $name
*
- * @param string $name
- * @param $object
+ * @param string $name
+ * @param mixed $object
* @param array $parameters
*
- * @return return a complete url
+ * @return string return a complete url
*/
public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false)
{
View
2  Admin/AdminExtensionInterface.php
@@ -78,7 +78,7 @@ function configureSideMenu(AdminInterface $admin, MenuItemInterface $menu, $acti
/**
* @param AdminInterface $admin
* @param \Sonata\AdminBundle\Validator\ErrorElement $errorElement
- * @param $object
+ * @param mixed $object
*
* @return void
*/
View
4 Admin/AdminHelper.php
@@ -32,7 +32,7 @@ public function __construct(Pool $pool)
* @throws \RuntimeException
*
* @param \Symfony\Component\Form\FormBuilder $formBuilder
- * @param $elementId
+ * @param string $elementId
*
* @return \Symfony\Component\Form\FormBuilder
*/
@@ -49,7 +49,7 @@ public function getChildFormBuilder(FormBuilder $formBuilder, $elementId)
/**
* @param \Symfony\Component\Form\FormView $formView
- * @param $elementId
+ * @param string $elementId
*
* @return null|\Symfony\Component\Form\FormView
*/
View
24 Admin/AdminInterface.php
@@ -74,7 +74,7 @@ function setRequest(Request $request);
function setConfigurationPool(Pool $pool);
/**
- * @param \Sonata\AdminBundle\Route\RouteGeneratorInterface $routerGenerator
+ * @param \Sonata\AdminBundle\Route\RouteGeneratorInterface $routeGenerator
*
* @return void
*/
@@ -429,63 +429,63 @@ function getListFieldDescription($name);
function configure();
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function update($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function create($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function delete($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function preUpdate($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function postUpdate($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function prePersist($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function postPersist($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
function preRemove($object);
/**
- * @param $object
+ * @param mixed $object
*
* @return mixed
*/
@@ -507,7 +507,7 @@ function hasSubject();
function validate(ErrorElement $errorElement, $object);
/**
- * @param $context
+ * @param string $context
*
* @return boolean
*/
@@ -516,7 +516,7 @@ function showIn($context);
/**
* Add object security, fe. make the current user owner of the object
*
- * @param $object
+ * @param mixed $object
*/
function createObjectSecurity($object);
View
6 Admin/FieldDescriptionInterface.php
@@ -215,7 +215,7 @@ function isIdentifier();
/**
* return the value linked to the description
*
- * @param $object
+ * @param mixed $object
*
* @return bool|mixed
*/
@@ -240,8 +240,8 @@ function getAdmin();
*
* @throws \RuntimeException
*
- * @param $name
- * @param array $options
+ * @param string $name
+ * @param array $options
*
* @return void
*/
View
6 Admin/Pool.php
@@ -102,7 +102,7 @@ public function getAdminByClass($class)
}
/**
- * @param $class
+ * @param string $class
*
* @return bool
*/
@@ -137,7 +137,7 @@ public function getAdminByAdminCode($adminCode)
/**
* Returns a new admin instance depends on the given code
*
- * @param $id
+ * @param string $id
*
* @return \Sonata\AdminBundle\Admin\AdminInterface
*/
@@ -227,7 +227,7 @@ public function getTemplates()
}
/**
- * @param $name
+ * @param string $name
*
* @return null|string
*/
View
2  Block/AdminListBlockService.php
@@ -30,7 +30,7 @@ class AdminListBlockService extends BaseBlockService
protected $pool;
/**
- * @param $name
+ * @param string $name
* @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating
* @param \Sonata\AdminBundle\Admin\Pool $pool
*/
View
2  Builder/DatagridBuilderInterface.php
@@ -31,7 +31,7 @@ function fixFieldDescription(AdminInterface $admin, FieldDescriptionInterface $f
* @abstract
*
* @param \Sonata\AdminBundle\Datagrid\DatagridInterface $datagrid
- * @param $type
+ * @param string $type
* @param \Sonata\AdminBundle\Admin\FieldDescriptionInterface $fieldDescription
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
*
View
44 Controller/CRUDController.php
@@ -19,6 +19,7 @@
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sonata\AdminBundle\Exception\ModelManagerException;
use Symfony\Component\HttpFoundation\Request;
+use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
class CRUDController extends Controller
{
@@ -30,9 +31,9 @@ class CRUDController extends Controller
protected $admin;
/**
- * @param mixed $data
+ * @param mixed $data
* @param integer $status
- * @param array $headers
+ * @param array $headers
*
* @return Response with json encoded data
*/
@@ -123,9 +124,10 @@ public function getBaseTemplate()
}
/**
- * @param $view
- * @param array $parameters
+ * @param string $view
+ * @param array $parameters
* @param null|\Symfony\Component\HttpFoundation\Response $response
+ *
* @return Response
*/
public function render($view, array $parameters = array(), Response $response = null)
@@ -165,10 +167,12 @@ public function listAction()
* execute a batch delete
*
* @throws \Symfony\Component\Security\Core\Exception\AccessDeniedException
- * @param $query
+ *
+ * @param \Sonata\AdminBundle\Datagrid\ProxyQueryInterface $query
+ *
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
- public function batchActionDelete($query)
+ public function batchActionDelete(ProxyQueryInterface $query)
{
if (false === $this->admin->isGranted('DELETE')) {
throw new AccessDeniedException();
@@ -187,12 +191,14 @@ public function batchActionDelete($query)
/**
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException|\Symfony\Component\Security\Core\Exception\AccessDeniedException
- * @param $id
+ *
+ * @param mixed $id
+ *
* @return Response|RedirectResponse
*/
public function deleteAction($id)
{
- $id = $this->get('request')->get($this->admin->getIdParameter());
+ $id = $this->get('request')->get($this->admin->getIdParameter());
$object = $this->admin->getObject($id);
if (!$object) {
@@ -207,7 +213,7 @@ public function deleteAction($id)
try {
$this->admin->delete($object);
$this->get('session')->setFlash('sonata_flash_success', 'flash_delete_success');
- } catch ( ModelManagerException $e ) {
+ } catch (ModelManagerException $e) {
$this->get('session')->setFlash('sonata_flash_error', 'flash_delete_error');
}
@@ -224,7 +230,9 @@ public function deleteAction($id)
* return the Response object associated to the edit action
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
+ *
* @param mixed $id
+ *
* @return \Symfony\Component\HttpFoundation\Response
*/
public function editAction($id = null)
@@ -283,6 +291,7 @@ public function editAction($id = null)
* redirect the user depend on this choice
*
* @param object $object
+ *
* @return \Symfony\Component\HttpFoundation\Response
*/
public function redirectTo($object)
@@ -313,14 +322,14 @@ public function redirectTo($object)
public function batchAction()
{
if ($this->get('request')->getMethod() != 'POST') {
- throw new \RuntimeException('invalid request type, POST expected');
+ throw new \RuntimeException('invalid request type, POST expected');
}
$confirmation = $this->get('request')->get('confirmation', false);
if ($data = json_decode($this->get('request')->get('data'), true)) {
- $action = $data['action'];
- $idx = $data['idx'];
+ $action = $data['action'];
+ $idx = $data['idx'];
$all_elements = $data['all_elements'];
$this->get('request')->request->replace($data);
} else {
@@ -473,7 +482,9 @@ public function showAction($id = null)
/**
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException|\Symfony\Component\Security\Core\Exception\AccessDeniedException
+ *
* @param mixed $id
+ *
* @return Response
*/
public function historyAction($id = null)
@@ -501,15 +512,16 @@ public function historyAction($id = null)
$revisions = $reader->findRevisions($this->admin->getClass(), $id);
return $this->render($this->admin->getTemplate('history'), array(
- 'action' => 'history',
- 'object' => $object,
+ 'action' => 'history',
+ 'object' => $object,
'revisions' => $revisions,
));
}
/**
- * @param null $id
- * @param $revision
+ * @param null $id
+ * @param string $revision
+ *
* @return Response
*/
public function historyViewRevisionAction($id = null, $revision = null)
View
36 Datagrid/Datagrid.php
@@ -44,18 +44,18 @@ class Datagrid implements DatagridInterface
protected $results;
/**
- * @param ProxyQueryInterface $query
+ * @param ProxyQueryInterface $query
* @param \Sonata\AdminBundle\Admin\FieldDescriptionCollection $columns
- * @param PagerInterface $pager
- * @param \Symfony\Component\Form\FormBuilder $formBuilder
- * @param array $values
+ * @param PagerInterface $pager
+ * @param \Symfony\Component\Form\FormBuilder $formBuilder
+ * @param array $values
*/
public function __construct(ProxyQueryInterface $query, FieldDescriptionCollection $columns, PagerInterface $pager, FormBuilder $formBuilder, array $values = array())
{
- $this->pager = $pager;
- $this->query = $query;
- $this->values = $values;
- $this->columns = $columns;
+ $this->pager = $pager;
+ $this->query = $query;
+ $this->values = $values;
+ $this->columns = $columns;
$this->formBuilder = $formBuilder;
}
@@ -131,6 +131,7 @@ public function buildPager()
/**
* @param \Sonata\AdminBundle\Filter\FilterInterface $filter
+ *
* @return void
*/
public function addFilter(FilterInterface $filter)
@@ -139,7 +140,8 @@ public function addFilter(FilterInterface $filter)
}
/**
- * @param $name
+ * @param string $name
+ *
* @return bool
*/
public function hasFilter($name)
@@ -148,7 +150,7 @@ public function hasFilter($name)
}
/**
- * @param $name
+ * @param string $name
*/
public function removeFilter($name)
{
@@ -156,7 +158,8 @@ public function removeFilter($name)
}
/**
- * @param $name
+ * @param string $name
+ *
* @return null
*/
public function getFilter($name)
@@ -186,13 +189,16 @@ public function getValues()
}
/**
- * @param $name
- * @param $operator
- * @param $value
+ * @param string $name
+ * @param string $operator
+ * @param mixed $value
*/
public function setValue($name, $operator, $value)
{
- $this->values[$name] = array('type' => $operator, 'value' => $value);
+ $this->values[$name] = array(
+ 'type' => $operator,
+ 'value' => $value
+ );
}
/**
View
31 Datagrid/DatagridInterface.php
@@ -15,32 +15,26 @@
interface DatagridInterface
{
/**
- * @abstract
* @return \Sonata\AdminBundle\Datagrid\PagerInterface
*/
function getPager();
/**
- * @abstract
* @return \Sonata\AdminBundle\Datagrid\ProxyQueryInterface
*/
function getQuery();
/**
- * @abstract
* @return array
*/
function getResults();
/**
- * @abstract
* @return void
*/
function buildPager();
/**
- * @abstract
- *
* @param \Sonata\AdminBundle\Filter\FilterInterface $filter
*
* @return \Sonata\AdminBundle\Filter\FilterInterface
@@ -48,65 +42,52 @@ function buildPager();
function addFilter(FilterInterface $filter);
/**
- * @abstract
* @return array
*/
function getFilters();
/**
- * @abstract
* @return array
*/
function getValues();
/**
- * @abstract
* @return array
*/
function getColumns();
/**
- * @abstract
- *
- * @param $name
- * @param $operator
- * @param $value
+ * @param string $name
+ * @param string $operator
+ * @param mixed $value
*/
function setValue($name, $operator, $value);
/**
- * @abstract
* @return \Symfony\Component\Form\Form
*/
function getForm();
/**
- * @abstract
- *
- * @param $name
+ * @param string $name
*
* @return \Sonata\AdminBundle\Filter\FilterInterface
*/
function getFilter($name);
/**
- * @abstract
- *
- * @param $name
+ * @param string $name
*
* @return bool
*/
function hasFilter($name);
/**
- * @abstract
- *
- * @param $name
+ * @param string $name
*/
function removeFilter($name);
/**
- * @abstract
* @return boolean
*/
public function hasActiveFilters();
View
10 Datagrid/DatagridMapper.php
@@ -44,11 +44,11 @@ public function __construct(DatagridBuilderInterface $datagridBuilder, DatagridI
/**
* @throws \RuntimeException
*
- * @param $name
- * @param null $type
- * @param array $filterOptions
- * @param null $fieldType
- * @param array $fieldOptions
+ * @param string $name
+ * @param string $type
+ * @param array $filterOptions
+ * @param string $fieldType
+ * @param array $fieldOptions
*
* @return DatagridMapper
*/
View
3  Datagrid/Pager.php
@@ -39,7 +39,6 @@
/**
* Constructor.
*
- * @param string $class The model class
* @param integer $maxPerPage Number of records to display per page
*/
public function __construct($maxPerPage = 10)
@@ -614,7 +613,7 @@ protected function retrieveObject($offset)
}
/**
- * @param $query
+ * @param mixed $query
*/
public function setQuery($query)
{
View
17 Datagrid/ProxyQueryInterface.php
@@ -25,16 +25,16 @@
function execute(array $params = array(), $hydrationMode = null);
/**
- * @param $name
- * @param $args
+ * @param string $name
+ * @param array $args
*
* @return mixed
*/
function __call($name, $args);
/**
- * @param $parentAssociationMappings
- * @param $fieldMapping
+ * @param array $parentAssociationMappings
+ * @param array $fieldMapping
*
* @return mixed
*/
@@ -46,14 +46,13 @@ function setSortBy($parentAssociationMappings, $fieldMapping);
function getSortBy();
/**
- * @param $sortOrder
+ * @param mixed $sortOrder
*
- * @return mixed
+ * @return void
*/
function setSortOrder($sortOrder);
/**
- * @abstract
* @return mixed
*/
function getSortOrder();
@@ -64,7 +63,7 @@ function getSortOrder();
function getSingleScalarResult();
/**
- * @param $firstResult
+ * @param int $firstResult
*
* @return mixed
*/
@@ -76,7 +75,7 @@ function setFirstResult($firstResult);
function getFirstResult();
/**
- * @param $maxResults
+ * @param int $maxResults
*
* @return mixed
*/
View
4 Export/Exporter.php
@@ -20,8 +20,8 @@ class Exporter
/**
* @throws \RuntimeException
*
- * @param $format
- * @param $filename
+ * @param string $format
+ * @param string $filename
* @param \Exporter\Source\SourceIteratorInterface $source
*
* @return \Symfony\Component\HttpFoundation\Response
View
4 Filter/Filter.php
@@ -178,7 +178,7 @@ public function getOptions()
}
/**
- * @param $value
+ * @param mixed $value
*
* @return void
*/
@@ -205,7 +205,7 @@ public function isActive()
}
/**
- * @param $condition
+ * @param string $condition
*
* @return void
*/
View
12 Filter/FilterInterface.php
@@ -28,8 +28,8 @@
function filter(ProxyQueryInterface $queryBuilder, $alias, $field, $value);
/**
- * @param $query
- * @param $value
+ * @param mixed $query
+ * @param mixed $value
*/
function apply($query, $value);
@@ -73,14 +73,14 @@ function getDefaultOptions();
function getOption($name, $default = null);
/**
- * @param $name
- * @param $value
+ * @param string $name
+ * @param mixed $value
*/
function setOption($name, $value);
/**
- * @param $name
- * @param array $options
+ * @param string $name
+ * @param array $options
*
* @return void
*/
View
2  Form/EventListener/ResizeFormListener.php
@@ -46,7 +46,7 @@ class ResizeFormListener implements EventSubscriberInterface
/**
* @param \Symfony\Component\Form\FormFactoryInterface $factory
- * @param $type
+ * @param string $type
* @param array $typeOptions
* @param bool $resizeOnBind
*/
View
2  Form/Type/Filter/NumberType.php
@@ -52,7 +52,7 @@ public function getName()
/**
* @param \Symfony\Component\Form\FormBuilder $builder
- * @param array $options
+ * @param array $options
*/
public function buildForm(FormBuilder $builder, array $options)
{
View
4 Guesser/TypeGuesserInterface.php
@@ -17,8 +17,8 @@
interface TypeGuesserInterface
{
/**
- * @param $class
- * @param $property
+ * @param string $class
+ * @param string $property
* @param \Sonata\AdminBundle\Model\ModelManagerInterface $modelManager
*
* @return mixed
View
8 Model/AuditManager.php
@@ -30,8 +30,8 @@ public function __construct(ContainerInterface $container)
}
/**
- * @param $serviceId
- * @param array $classes
+ * @param string $serviceId
+ * @param array $classes
*/
public function setReader($serviceId, array $classes)
{
@@ -39,7 +39,7 @@ public function setReader($serviceId, array $classes)
}
/**
- * @param $class
+ * @param string $class
*
* @return bool
*/
@@ -55,7 +55,7 @@ public function hasReader($class)
}
/**
- * @param $class
+ * @param string $class
*
* @return \Sonata\AdminBundle\Model\AuditReaderInterface
* @throws \RuntimeException
View
8 Model/AuditManagerInterface.php
@@ -18,20 +18,20 @@
interface AuditManagerInterface
{
/**
- * @param $serviceId
- * @param array $classes
+ * @param string $serviceId
+ * @param array $classes
*/
function setReader($serviceId, array $classes);
/**
- * @param $class
+ * @param string $class
*
* @return bool
*/
function hasReader($class);
/**
- * @param $class
+ * @param string $class
*
* @return \Sonata\AdminBundle\Model\AuditReaderInterface
* @throws \RuntimeException
View
28 Model/AuditReaderInterface.php
@@ -18,36 +18,28 @@
interface AuditReaderInterface
{
/**
- * @abstract
- *
- * @param $className
- * @param $id
- * @param $revision
+ * @param string $className
+ * @param string $id
+ * @param string $revision
*/
function find($className, $id, $revision);
/**
- * @abstract
- *
- * @param $className
- * @param int $limit
- * @param int $offset
+ * @param string $className
+ * @param int $limit
+ * @param int $offset
*/
function findRevisionHistory($className, $limit = 20, $offset = 0);
/**
- * @abstract
- *
- * @param $classname
- * @param $revision
+ * @param string $classname
+ * @param string $revision
*/
function findRevision($classname, $revision);
/**
- * @abstract
- *
- * @param $className
- * @param $id
+ * @param string $className
+ * @param string $id
*/
function findRevisions($className, $id);
}
View
4 Model/ModelManagerInterface.php
@@ -46,14 +46,14 @@ function getMetadata($name);
function getNewFieldDescriptionInstance($class, $name, array $options = array());
/**
- * @param $object
+ * @param mixed $object
*
* @return void
*/
function create($object);
/**
- * @param object $object
+ * @param mixed $object
*
* @return void
*/
View
6 Route/DefaultRouteGenerator.php
@@ -26,9 +26,9 @@ public function __construct(RouterInterface $router)
}
/**
- * @param $name
- * @param array $parameters
- * @param bool $absolute
+ * @param string $name
+ * @param array $parameters
+ * @param bool $absolute
*
* @return string
*/
View
2  Route/RouteCollection.php
@@ -123,7 +123,7 @@ public function get($name)
}
/**
- * @param $name
+ * @param string $name
*
* @return \Sonata\AdminBundle\Route\RouteCollection
*/
View
10 Route/RouteGeneratorInterface.php
@@ -16,7 +16,7 @@
{
/**
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
- * @param $name
+ * @param string $name
* @param array $parameters
* @param bool $absolute
*
@@ -25,11 +25,11 @@
function generateUrl(AdminInterface $admin, $name, array $parameters = array(), $absolute = false);
/**
- * @param $name
- * @param array $parameters
- * @param bool $absolute
+ * @param string $name
+ * @param array $parameters
+ * @param bool $absolute
*
- * @return void
+ * @return string
*/
function generate($name, array $parameters = array(), $absolute = false);
}
View
19 Security/Handler/SecurityHandlerInterface.php
@@ -16,10 +16,9 @@
interface SecurityHandlerInterface
{
/**
- * @abstract
- *
- * @param string|array $attributes
- * @param null $object
+ * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
+ * @param string|array $attributes
+ * @param null $object
*
* @return boolean
*/
@@ -28,8 +27,6 @@ function isGranted(AdminInterface $admin, $attributes, $object = null);
/**
* Get a sprintf template to get the role
*
- * @abstract
- *
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
*
* @return string
@@ -37,8 +34,6 @@ function isGranted(AdminInterface $admin, $attributes, $object = null);
function getBaseRole(AdminInterface $admin);
/**
- * @abstract
- *
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
*
* @return void
@@ -48,10 +43,8 @@ function buildSecurityInformation(AdminInterface $admin);
/**
* Create object security, fe. make the current user owner of the object
*
- * @abstract
- *
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
- * @param object $object
+ * @param mixed $object
*
* @return void
*/
@@ -60,10 +53,8 @@ function createObjectSecurity(AdminInterface $admin, $object);
/**
* Remove object security
*
- * @abstract
- *
* @param \Sonata\AdminBundle\Admin\AdminInterface $admin
- * @param object $object
+ * @param mixed $object
*
* @return void
*/
View
18 Translator/Extractor/JMSTranslatorBundle/AdminExtractor.php
@@ -27,18 +27,18 @@ class AdminExtractor implements ExtractorInterface, TranslatorInterface, Securit
/**
* @param \Symfony\Component\HttpKernel\Log\LoggerInterface $logger
- * @param \Sonata\AdminBundle\Admin\Pool $adminPool
+ * @param \Sonata\AdminBundle\Admin\Pool $adminPool
*/
public function __construct(LoggerInterface $logger, Pool $adminPool)
{
- $this->logger = $logger;
- $this->adminPool = $adminPool;
+ $this->logger = $logger;
+ $this->adminPool = $adminPool;
// state variable
- $this->catalogue = false;
- $this->translator = false;
+ $this->catalogue = false;
+ $this->translator = false;
$this->labelStrategy = false;
- $this->domain = false;
+ $this->domain = false;
}
/**
@@ -125,14 +125,14 @@ private function getAdmin($id)
}
/**
- * @param $id
- * @param $domain
+ * @param string $id
+ * @param string $domain
*/
private function addMessage($id, $domain)
{
$message = new Message($id, $domain);
-// $this->logger->debug(sprintf('extract: %s - domain:%s', $id, $domain));
+ // $this->logger->debug(sprintf('extract: %s - domain:%s', $id, $domain));
$trace = debug_backtrace(false);
if (isset($trace[1]['file'])) {
View
8 Translator/LabelTranslatorStrategyInterface.php
@@ -14,11 +14,9 @@
interface LabelTranslatorStrategyInterface
{
/**
- * @abstract
- *
- * @param $label
- * @param $context
- * @param $type
+ * @param string $label
+ * @param string $context
+ * @param string $type
*
* @return string
*/
View
2  Util/AdminAclManipulator.php
@@ -24,7 +24,7 @@ class AdminAclManipulator implements AdminAclManipulatorInterface
protected $maskBuilderClass;
/**
- * @param $maskBuilderClass
+ * @param string $maskBuilderClass
*/
public function __construct($maskBuilderClass)
{
View
8 Validator/ErrorElement.php
@@ -37,10 +37,10 @@ class ErrorElement
protected $errors = array();
/**
- * @param $subject
+ * @param mixed $subject
* @param \Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory $constraintValidatorFactory
* @param \Symfony\Component\Validator\ExecutionContext $context
- * @param $group
+ * @param string $group
*/
public function __construct($subject, ConstraintValidatorFactory $constraintValidatorFactory, ExecutionContext $context, $group)
{
@@ -56,8 +56,8 @@ public function __construct($subject, ConstraintValidatorFactory $constraintVali
/**
* @throws \RunTimeException
*
- * @param $name
- * @param array $arguments
+ * @param string $name
+ * @param array $arguments
*
* @return ErrorElement
*/
Please sign in to comment.
Something went wrong with that request. Please try again.