@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException If number of params is incorrect |
| 46 | 46 | * |
| 47 | - * @return \Netgen\Bundle\OpenGraphBundle\MetaTag\Item[] |
|
| 47 | + * @return Item[] |
|
| 48 | 48 | */ |
| 49 | 49 | public function getMetaTags($tagName, array $params = []) |
| 50 | 50 | { |
@@ -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( |