Fix typos.
This commit is contained in:
parent
4685958cbf
commit
5eeb29a9d2
|
@ -2471,7 +2471,7 @@ class JsonLdProcessor {
|
||||||
// handle @set and @list
|
// handle @set and @list
|
||||||
else if(property_exists($rval, '@set') ||
|
else if(property_exists($rval, '@set') ||
|
||||||
property_exists($rval, '@list')) {
|
property_exists($rval, '@list')) {
|
||||||
if($count > 1 && ($count !== 2 && property_exists($rval, '@index'))) {
|
if($count > 1 && !($count === 2 && property_exists($rval, '@index'))) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
'Invalid JSON-LD syntax; if an element has the property "@set" ' .
|
'Invalid JSON-LD syntax; if an element has the property "@set" ' .
|
||||||
'or "@list", then it can have at most one other property that is ' .
|
'or "@list", then it can have at most one other property that is ' .
|
||||||
|
@ -4813,8 +4813,7 @@ class JsonLdProcessor {
|
||||||
if($type !== '@id' && $type !== '@vocab') {
|
if($type !== '@id' && $type !== '@vocab') {
|
||||||
// expand @type to full IRI
|
// expand @type to full IRI
|
||||||
$type = $this->_expandIri(
|
$type = $this->_expandIri(
|
||||||
$active_ctx, $type, array('vocab' => true, 'base' => true),
|
$active_ctx, $type, array('vocab' => true), $local_ctx, $defined);
|
||||||
$local_ctx, $defined);
|
|
||||||
if(!self::_isAbsoluteIri($type)) {
|
if(!self::_isAbsoluteIri($type)) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
'Invalid JSON-LD syntax; an @context @type value must ' .
|
'Invalid JSON-LD syntax; an @context @type value must ' .
|
||||||
|
|
Loading…
Reference in a new issue