@@ -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 = [ |
@@ -172,7 +172,7 @@ |
||
172 | 172 | /** |
173 | 173 | * @param array $configuration |
174 | 174 | * @param ActionConfiguration $actionConfiguration |
175 | - * @return array |
|
175 | + * @return string |
|
176 | 176 | * @throws Exception |
177 | 177 | */ |
178 | 178 | private function resolveTopLevelConfiguration(array $configuration, ActionConfiguration $actionConfiguration) |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | /** |
275 | 275 | * Check if the Entity manager is open or closed. |
276 | 276 | * |
277 | - * @return bool |
|
277 | + * @return boolean|null |
|
278 | 278 | */ |
279 | 279 | public function isOpen() |
280 | 280 | { |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | /** |
346 | 346 | * Checks whether the state of the filter collection is clean. |
347 | 347 | * |
348 | - * @return boolean True, if the filter collection is clean. |
|
348 | + * @return boolean|null True, if the filter collection is clean. |
|
349 | 349 | */ |
350 | 350 | public function isFiltersStateClean() |
351 | 351 | { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | /** |
356 | 356 | * Checks whether the Entity Manager has filters. |
357 | 357 | * |
358 | - * @return boolean True, if the EM has a filter collection. |
|
358 | + * @return boolean|null True, if the EM has a filter collection. |
|
359 | 359 | */ |
360 | 360 | public function hasFilters() |
361 | 361 | { |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | * |
518 | 518 | * @param object $object |
519 | 519 | * |
520 | - * @return bool |
|
520 | + * @return boolean|null |
|
521 | 521 | */ |
522 | 522 | public function contains($object) |
523 | 523 | { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | |
174 | 174 | /** |
175 | - * @param $name |
|
175 | + * @param string $name |
|
176 | 176 | * @return ActionInterface | PHPUnit_Framework_MockObject_MockObject |
177 | 177 | */ |
178 | 178 | protected function mockAction($name) |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * Return a mock of an entity repository |
248 | 248 | * |
249 | - * @return RepositoryInterface | PHPUnit_Framework_MockObject_MockObject |
|
249 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
250 | 250 | */ |
251 | 251 | protected function mockEntityRepository() |
252 | 252 | { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | } |
313 | 313 | |
314 | 314 | /** |
315 | - * @return TokenStorageInterface | PHPUnit_Framework_MockObject_MockObject |
|
315 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
316 | 316 | */ |
317 | 317 | protected function mockTokenStorage() |
318 | 318 | { |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
354 | - * @return TranslatorInterface | PHPUnit_Framework_MockObject_MockObject |
|
354 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
355 | 355 | */ |
356 | 356 | protected function mockTranslator() |
357 | 357 | { |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | |
363 | 363 | /** |
364 | 364 | * @param array $entities |
365 | - * @return DataProviderInterface|PHPUnit_Framework_MockObject_MockObject |
|
365 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
366 | 366 | */ |
367 | 367 | protected function mockDataProvider($entities = []) |
368 | 368 | { |