Skip to content

Commit 989c394

Browse files
committed
Minor style fix.
1 parent f23d0eb commit 989c394

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jsonld.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,9 +3695,9 @@ protected function _createNodeMap(
36953695

36963696
// copy non-@type keywords
36973697
if($property !== '@type' && self::_isKeyword($property)) {
3698-
if($property === '@index' && property_exists($subject, '@index')
3699-
&& ($input->{'@index'} !== $subject->{'@index'}
3700-
|| $input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
3698+
if($property === '@index' && property_exists($subject, '@index') &&
3699+
($input->{'@index'} !== $subject->{'@index'} ||
3700+
$input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
37013701
throw new JsonLdException(
37023702
'Invalid JSON-LD syntax; conflicting @index property detected.',
37033703
'jsonld.SyntaxError', 'conflicting indexes',

0 commit comments

Comments
 (0)