@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $processor = new ConfigurationProcessor($container, 'netgen_open_graph'); |
| 50 | 50 | $processor->mapConfig( |
| 51 | 51 | $config, |
| 52 | - static function ($scopeSettings, $currentScope, ContextualizerInterface $contextualizer) { |
|
| 52 | + static function($scopeSettings, $currentScope, ContextualizerInterface $contextualizer) { |
|
| 53 | 53 | foreach ($scopeSettings as $key => $value) { |
| 54 | 54 | $contextualizer->setContextualParameter($key, $currentScope, $value); |
| 55 | 55 | } |
@@ -54,13 +54,11 @@ |
||
| 54 | 54 | $metaTags = []; |
| 55 | 55 | |
| 56 | 56 | $allHandlers = $this->configResolver->hasParameter('global_handlers', 'netgen_open_graph') ? |
| 57 | - $this->configResolver->getParameter('global_handlers', 'netgen_open_graph') : |
|
| 58 | - []; |
|
| 57 | + $this->configResolver->getParameter('global_handlers', 'netgen_open_graph') : []; |
|
| 59 | 58 | |
| 60 | 59 | $contentType = $this->contentTypeService->loadContentType($content->contentInfo->contentTypeId); |
| 61 | 60 | $contentTypeHandlers = $this->configResolver->hasParameter('content_type_handlers', 'netgen_open_graph') ? |
| 62 | - $this->configResolver->getParameter('content_type_handlers', 'netgen_open_graph') : |
|
| 63 | - []; |
|
| 61 | + $this->configResolver->getParameter('content_type_handlers', 'netgen_open_graph') : []; |
|
| 64 | 62 | |
| 65 | 63 | if (isset($contentTypeHandlers[$contentType->identifier])) { |
| 66 | 64 | $allHandlers = array_merge( |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | |
| 7 | 7 | use eZ\Publish\API\Repository\Values\Content\Field; |
| 8 | 8 | use eZ\Publish\Core\FieldType\RichText\Value; |
| 9 | -use Netgen\Bundle\OpenGraphBundle\Exception\FieldEmptyException; |
|
| 10 | 9 | |
| 11 | 10 | class RichText extends XmlText |
| 12 | 11 | { |