Skip to content

Commit b1f39f7

Browse files
committed
Fix PHPDoc
1 parent e3326a6 commit b1f39f7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

JsonLd/Event/ContextBuilderEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ContextBuilderEvent extends Event
2626
*/
2727
private $context;
2828
/**
29-
* @var Resource
29+
* @var ResourceInterface
3030
*/
3131
private $resource;
3232

JsonLd/EventListener/ResourceContextBuilderListener.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,21 @@ public static function getSubscribedEvents()
4646
];
4747
}
4848

49+
/**
50+
* Builds default context.
51+
*
52+
* @param ContextBuilderEvent $event
53+
*/
4954
public function onContextBuilder(ContextBuilderEvent $event)
5055
{
5156
$resource = $event->getResource();
52-
$context = $event->getContext();
5357

5458
if (null === $resource) {
5559
return;
5660
}
5761

62+
$context = $event->getContext();
63+
5864
$prefixedShortName = sprintf('#%s', $resource->getShortName());
5965

6066
$attributes = $this->classMetadataFactory->getMetadataFor(

0 commit comments

Comments
 (0)