@@ -418,6 +418,9 @@ discard block |
||
| 418 | 418 | return implode('-', $components); |
| 419 | 419 | } |
| 420 | 420 | |
| 421 | + /** |
|
| 422 | + * @param string $fieldName |
|
| 423 | + */ |
|
| 421 | 424 | private function hasCachedFieldGetter($object, $fieldName): bool |
| 422 | 425 | { |
| 423 | 426 | return isset( |
@@ -425,6 +428,9 @@ discard block |
||
| 425 | 428 | ); |
| 426 | 429 | } |
| 427 | 430 | |
| 431 | + /** |
|
| 432 | + * @param string $fieldName |
|
| 433 | + */ |
|
| 428 | 434 | private function callCachedGetter($object, $fieldName, array $parameters = []) |
| 429 | 435 | { |
| 430 | 436 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -443,6 +449,10 @@ discard block |
||
| 443 | 449 | return $object->{$fieldName}; |
| 444 | 450 | } |
| 445 | 451 | |
| 452 | + /** |
|
| 453 | + * @param string $fieldName |
|
| 454 | + * @param string $method |
|
| 455 | + */ |
|
| 446 | 456 | private function cacheFieldGetter($object, $fieldName, $method, $getter = null): void |
| 447 | 457 | { |
| 448 | 458 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -295,7 +295,7 @@ |
||
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | - * @return array |
|
| 298 | + * @return string[] |
|
| 299 | 299 | */ |
| 300 | 300 | public function getAdminServiceIds() |
| 301 | 301 | { |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
| 296 | - * @return Symfony\Component\DependencyInjection\ContainerInterface - the mock of container interface |
|
| 296 | + * @return ContainerInterface - the mock of container interface |
|
| 297 | 297 | */ |
| 298 | 298 | private function getContainer() |
| 299 | 299 | { |
@@ -307,6 +307,9 @@ discard block |
||
| 307 | 307 | return $containerMock; |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | + /** |
|
| 311 | + * @param string $serviceId |
|
| 312 | + */ |
|
| 310 | 313 | private function getItemArray($serviceId) |
| 311 | 314 | { |
| 312 | 315 | return [ |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | /** |
| 127 | 127 | * render a list element from the FieldDescription. |
| 128 | 128 | * |
| 129 | - * @param mixed $object |
|
| 129 | + * @param \stdClass $object |
|
| 130 | 130 | * @param array $params |
| 131 | 131 | * |
| 132 | 132 | * @return string |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * render a view element. |
| 224 | 224 | * |
| 225 | - * @param mixed $object |
|
| 225 | + * @param \stdClass $object |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | /** |
| 360 | 360 | * Get the identifiers as a string that is safe to use in a url. |
| 361 | 361 | * |
| 362 | - * @param object $model |
|
| 362 | + * @param \stdClass $model |
|
| 363 | 363 | * |
| 364 | 364 | * @return string string representation of the id that is safe to use in a url |
| 365 | 365 | */ |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | /** |
| 384 | - * @return string|bool |
|
| 384 | + * @return string|false |
|
| 385 | 385 | */ |
| 386 | 386 | public function getXEditableType($type) |
| 387 | 387 | { |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use Symfony\Component\Translation\TranslatorInterface; |
| 23 | 23 | use Twig\Environment; |
| 24 | 24 | use Twig\Extension\AbstractExtension; |
| 25 | -use Twig\Template; |
|
| 26 | 25 | use Twig\TemplateWrapper; |
| 27 | 26 | use Twig\TwigFilter; |
| 28 | 27 | use Twig\TwigFunction; |
@@ -33,7 +33,6 @@ |
||
| 33 | 33 | use Symfony\Component\Form\FormFactoryInterface; |
| 34 | 34 | use Symfony\Component\HttpFoundation\RequestStack; |
| 35 | 35 | use Symfony\Component\HttpFoundation\Session\Session; |
| 36 | -use Symfony\Component\HttpKernel\KernelInterface; |
|
| 37 | 36 | use Symfony\Component\PropertyAccess\PropertyAccessor; |
| 38 | 37 | use Symfony\Component\Routing\RouterInterface; |
| 39 | 38 | use Twig\Environment; |