Minor style fix.

This commit is contained in:
Dave Longley 2015-03-16 13:56:04 -04:00
parent f23d0eb51e
commit 989c394690
1 changed files with 3 additions and 3 deletions

View File

@ -3695,9 +3695,9 @@ class JsonLdProcessor {
// copy non-@type keywords
if($property !== '@type' && self::_isKeyword($property)) {
if($property === '@index' && property_exists($subject, '@index')
&& ($input->{'@index'} !== $subject->{'@index'}
|| $input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
if($property === '@index' && property_exists($subject, '@index') &&
($input->{'@index'} !== $subject->{'@index'} ||
$input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
throw new JsonLdException(
'Invalid JSON-LD syntax; conflicting @index property detected.',
'jsonld.SyntaxError', 'conflicting indexes',