forked from friendica/php-json-ld
Minor style fix.
This commit is contained in:
parent
f23d0eb51e
commit
989c394690
|
@ -3695,9 +3695,9 @@ class JsonLdProcessor {
|
||||||
|
|
||||||
// copy non-@type keywords
|
// copy non-@type keywords
|
||||||
if($property !== '@type' && self::_isKeyword($property)) {
|
if($property !== '@type' && self::_isKeyword($property)) {
|
||||||
if($property === '@index' && property_exists($subject, '@index')
|
if($property === '@index' && property_exists($subject, '@index') &&
|
||||||
&& ($input->{'@index'} !== $subject->{'@index'}
|
($input->{'@index'} !== $subject->{'@index'} ||
|
||||||
|| $input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
|
$input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
'Invalid JSON-LD syntax; conflicting @index property detected.',
|
'Invalid JSON-LD syntax; conflicting @index property detected.',
|
||||||
'jsonld.SyntaxError', 'conflicting indexes',
|
'jsonld.SyntaxError', 'conflicting indexes',
|
||||||
|
|
Loading…
Reference in a new issue