@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * ActionConfiguration constructor. |
| 43 | 43 | * |
| 44 | 44 | * @param string $actionName |
| 45 | - * @param $adminName |
|
| 45 | + * @param string $adminName |
|
| 46 | 46 | * @param AdminConfiguration $adminConfiguration |
| 47 | 47 | */ |
| 48 | 48 | public function __construct($actionName, $adminName, AdminConfiguration $adminConfiguration) |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @param $name |
|
| 146 | + * @param string $name |
|
| 147 | 147 | * @param $type |
| 148 | 148 | * |
| 149 | 149 | * @return FieldInterface |
@@ -64,8 +64,8 @@ |
||
| 64 | 64 | /** |
| 65 | 65 | * View constructor. |
| 66 | 66 | * |
| 67 | - * @param $actionName |
|
| 68 | - * @param $adminName |
|
| 67 | + * @param string $actionName |
|
| 68 | + * @param string $adminName |
|
| 69 | 69 | * @param ActionConfiguration $configuration |
| 70 | 70 | * @param AdminConfiguration $adminConfiguration |
| 71 | 71 | * @param FieldInterface[] $fields |
@@ -135,12 +135,10 @@ |
||
| 135 | 135 | |
| 136 | 136 | if (LAGAdminBundle::LOAD_STRATEGY_NONE === $strategy) { |
| 137 | 137 | return; |
| 138 | - } |
|
| 139 | - else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 138 | + } else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 140 | 139 | $entities = $dataProvider->getCollection($admin, $event->getFilters()); |
| 141 | 140 | $event->setEntities($entities); |
| 142 | - } |
|
| 143 | - else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 141 | + } else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 144 | 142 | $requirements = $actionConfiguration->getParameter('route_requirements'); |
| 145 | 143 | $identifier = null; |
| 146 | 144 | |
@@ -138,6 +138,10 @@ discard block |
||
| 138 | 138 | ]; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + /** |
|
| 142 | + * @param string $entityClass |
|
| 143 | + * @param string $adminName |
|
| 144 | + */ |
|
| 141 | 145 | private function addDefaultFields(array &$configuration, $entityClass, $adminName) |
| 142 | 146 | { |
| 143 | 147 | $fieldsMapping = [ |
@@ -343,7 +347,7 @@ discard block |
||
| 343 | 347 | /** |
| 344 | 348 | * Return the default action field if found. |
| 345 | 349 | * |
| 346 | - * @param array $fields |
|
| 350 | + * @param string[] $fields |
|
| 347 | 351 | * |
| 348 | 352 | * @return string|null |
| 349 | 353 | */ |
@@ -420,6 +424,9 @@ discard block |
||
| 420 | 424 | return $metadata; |
| 421 | 425 | } |
| 422 | 426 | |
| 427 | + /** |
|
| 428 | + * @param string $type |
|
| 429 | + */ |
|
| 423 | 430 | private function getOperatorFromFieldType($type) |
| 424 | 431 | { |
| 425 | 432 | $mapping = [ |