@@ -87,7 +87,7 @@ |
||
| 87 | 87 | if ((null !== $annotation) && !$this->security->isGranted($annotation->getReadOperationName(), $element)) { |
| 88 | 88 | $property->setAccessible(true); |
| 89 | 89 | $value = $annotation->getPlaceholder(); |
| 90 | - if($value instanceof DBElement) { |
|
| 90 | + if ($value instanceof DBElement) { |
|
| 91 | 91 | $this->em->detach($value); |
| 92 | 92 | } |
| 93 | 93 | $property->setValue($element, $value); |
@@ -71,12 +71,12 @@ |
||
| 71 | 71 | |
| 72 | 72 | $resolver->setRequired('property'); |
| 73 | 73 | |
| 74 | - $resolver->setDefault('field', function (Options $option) { |
|
| 75 | - return $option['property'] . '.name'; |
|
| 74 | + $resolver->setDefault('field', function(Options $option) { |
|
| 75 | + return $option['property'].'.name'; |
|
| 76 | 76 | }); |
| 77 | 77 | |
| 78 | - $resolver->setDefault('render', function (Options $options) { |
|
| 79 | - return function ($value, Part $context) use ($options) { |
|
| 78 | + $resolver->setDefault('render', function(Options $options) { |
|
| 79 | + return function($value, Part $context) use ($options) { |
|
| 80 | 80 | /** @var DBElement $entity */ |
| 81 | 81 | $entity = $this->accessor->getValue($context, $options['property']); |
| 82 | 82 | |